Merge pull request #7674 from penpot/elenatorro-12478-fix-new-lines

🐛 Fix new lines issues
This commit is contained in:
Alejandro Alonso
2025-11-05 10:13:41 +01:00
committed by GitHub
8 changed files with 197 additions and 26 deletions

View File

@@ -330,7 +330,7 @@ impl Shape {
self.selrect.set_ltrb(left, top, right, bottom);
if let Type::Text(ref mut text) = self.shape_type {
text.update_layout(self.selrect);
text.set_xywh(left, top, right - left, bottom - top);
text.set_xywh(left, top, self.selrect.width(), self.selrect.height());
}
}