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:
parent
5ff8e6d143
commit
74e703082c
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user