Skip to content

Commit 7d84360

Browse files
committed
fix: bad width calc in dialogui
1 parent 5651d7e commit 7d84360

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

blade-engine/src/com/bladecoder/engine/ui/DialogUI.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ public void clicked(InputEvent event, float x, float y) {
100100
}
101101

102102
panel.pack();
103-
setWidth(getStage().getWidth());
103+
setWidth(getStage().getViewport().getScreenWidth());
104104
setHeight(Math.min(panel.getHeight(), getStage().getHeight()/2));
105105
}
106106

0 commit comments

Comments
 (0)