small todo

This commit is contained in:
Speiger 2025-01-23 09:00:57 +01:00
parent 8d7c7d2d97
commit bfe426f11e

View File

@ -47,6 +47,7 @@ public class Constraints {
List<IGuiBox> children = owner.children();
for(int i = 0,m=children.size();i<m;i++) {
IGuiBox child = children.get(i);
//TODO Fix this. Shouldn't this be width + offset instead of offset + width?
value = Math.max(value, child.getBaseX() + (includeChildOffsets() ? child.getBaseWidth() : 0));
}
target.set(owner, value);