0
0
mirror of https://github.com/Wurst-Imperium/Wurst7.git synced 2024-09-20 01:12:13 +02:00

Fix Window.pack() setting the width too low

This commit is contained in:
Alexander01998 2019-09-29 11:21:03 +02:00
parent 5ff8e6d143
commit 74e703082c

View File

@ -110,7 +110,7 @@ public class Window
{
int maxChildWidth = 0;
for(Component c : children)
if(c.getWidth() > maxChildWidth)
if(c.getDefaultWidth() > maxChildWidth)
maxChildWidth = c.getDefaultWidth();
maxChildWidth += 4;