mirror of
https://github.com/penpot/penpot.git
synced 2025-07-18 05:07:12 +02:00
✨ Text grow width/height
This commit is contained in:
parent
6b300d516b
commit
568af52ebc
13 changed files with 381 additions and 106 deletions
|
@ -711,9 +711,9 @@ impl Shape {
|
|||
}
|
||||
|
||||
pub fn clear_text(&mut self) {
|
||||
match self.shape_type {
|
||||
Type::Text(_) => {
|
||||
let new_text_content = TextContent::new(self.selrect);
|
||||
match &self.shape_type {
|
||||
Type::Text(old_text_content) => {
|
||||
let new_text_content = TextContent::new(self.selrect, old_text_content.grow_type());
|
||||
self.shape_type = Type::Text(new_text_content);
|
||||
}
|
||||
_ => {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue