mirror of
https://github.com/penpot/penpot.git
synced 2025-12-11 22:14:05 +01:00
🎉 Add internal TextContent layout data
This commit is contained in:
@@ -769,7 +769,7 @@ impl Shape {
|
||||
bounds_rect
|
||||
};
|
||||
|
||||
if let Type::Text(ref text_content) = self.shape_type {
|
||||
if let Type::Text(text_content) = &self.shape_type {
|
||||
let (width, height) = text_content.visual_bounds();
|
||||
rect.right = rect.left + width;
|
||||
rect.bottom = rect.top + height;
|
||||
|
||||
Reference in New Issue
Block a user