mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 20:58:03 +00:00
Fix max prompt size for FOptionPane
This commit is contained in:
@@ -238,7 +238,7 @@ public class FOptionPane extends FDialog {
|
|||||||
float x = PADDING;
|
float x = PADDING;
|
||||||
float y = 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) {
|
if (displayObj != null) {
|
||||||
maxPromptHeight -= displayObj.getHeight();
|
maxPromptHeight -= displayObj.getHeight();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user