mirror of
https://github.com/penpot/penpot.git
synced 2025-12-12 06:24:17 +01:00
✨ Text grow width/height
This commit is contained in:
committed by
Alonso Torres
parent
6b300d516b
commit
568af52ebc
@@ -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);
|
||||
}
|
||||
_ => {}
|
||||
|
||||
Reference in New Issue
Block a user