Fix max prompt size for FOptionPane

This commit is contained in:
drdev
2014-08-09 05:23:53 +00:00
parent ce95b9e8ac
commit 7d6f30eef0

View File

@@ -238,7 +238,7 @@ public class FOptionPane extends FDialog {
float x = PADDING;
float y = PADDING;
float maxPromptHeight = maxHeight - PADDING - BUTTON_HEIGHT - GAP_BELOW_BUTTONS;
float maxPromptHeight = maxHeight - 2 * PADDING - BUTTON_HEIGHT - GAP_BELOW_BUTTONS;
if (displayObj != null) {
maxPromptHeight -= displayObj.getHeight();
}