Padding fix for flex

This commit is contained in:
2025-08-02 06:14:13 -05:00
parent 0ccf03de3b
commit 3a4c3505ac
+2 -2
View File
@@ -67,7 +67,7 @@ impl Element for FlexRow {
transform.height = transform.height.max(v + t.height);
t.x += transform.x;
t.y += transform.y + v;
v += t.height + self.gap;
v += t.height + self.gap + t.py;
t.px += transform.px;
t.py += transform.py;
@@ -123,7 +123,7 @@ impl Element for FlexCol {
transform.height = transform.height.max(t.height + (t.py * 2));
t.x += transform.x + v;
t.y += transform.y;
v += t.width + self.gap;
v += t.width + self.gap + t.px;
t.px += transform.px;
t.py += transform.py;