Fixed area rendering and merging issues

This commit is contained in:
2025-11-01 12:40:30 +01:00
parent fd8e466830
commit dbb8a0e01a
4 changed files with 61 additions and 53 deletions
+13
View File
@@ -171,6 +171,19 @@ impl RawTransform {
py: 0,
}
}
pub fn transform_parent(&mut self, parent: &Self) {
let child_bottom = self.y + self.height;
let parent_bottom = parent.y + parent.height;
if child_bottom > parent_bottom {
if parent_bottom > self.y {
self.height = parent_bottom - self.y;
} else {
self.height = 0;
}
}
}
}
impl Dimension {