diff options
Diffstat (limited to 'src/main/java/kr/syeyoung/dungeonsguide/roomedit/panes/GeneralEditPane.java')
-rw-r--r-- | src/main/java/kr/syeyoung/dungeonsguide/roomedit/panes/GeneralEditPane.java | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/main/java/kr/syeyoung/dungeonsguide/roomedit/panes/GeneralEditPane.java b/src/main/java/kr/syeyoung/dungeonsguide/roomedit/panes/GeneralEditPane.java index d8345eb6..59620ff0 100644 --- a/src/main/java/kr/syeyoung/dungeonsguide/roomedit/panes/GeneralEditPane.java +++ b/src/main/java/kr/syeyoung/dungeonsguide/roomedit/panes/GeneralEditPane.java @@ -88,7 +88,12 @@ System.out.println("building"); @Override public void resize(int parentWidth, int parentHeight) { - save.setBounds(new Rectangle(0,100,bounds.width, 20)); this.setBounds(new Rectangle(5,5,parentWidth-10,parentHeight-10)); } + + @Override + public void onBoundsUpdate() { + if (save != null) + save.setBounds(new Rectangle(0,100,bounds.width, 20)); + } } |