panelcomponent: fix removing final gap from total width/height
This commit is contained in:
@@ -163,8 +163,14 @@ public class PanelComponent implements LayoutableRenderableEntity
|
||||
}
|
||||
|
||||
// Remove last child gap
|
||||
totalWidth -= gap.x;
|
||||
totalHeight -= gap.y;
|
||||
if (orientation == ComponentOrientation.HORIZONTAL)
|
||||
{
|
||||
totalWidth -= gap.x;
|
||||
}
|
||||
else // VERTICAL
|
||||
{
|
||||
totalHeight -= gap.y;
|
||||
}
|
||||
|
||||
// Cache children bounds
|
||||
childDimensions.setSize(totalWidth, totalHeight);
|
||||
|
||||
Reference in New Issue
Block a user