mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-15 10:18:01 +00:00
Fix so combo boxes aren't cut off
This commit is contained in:
@@ -185,9 +185,10 @@ public class FComboBox<E> extends FTextField {
|
|||||||
float x = FComboBox.this.localToScreenX(0);
|
float x = FComboBox.this.localToScreenX(0);
|
||||||
float y = FComboBox.this.localToScreenY(FComboBox.this.getHeight());
|
float y = FComboBox.this.localToScreenY(FComboBox.this.getHeight());
|
||||||
|
|
||||||
paneSize = updateAndGetPaneSize(FComboBox.this.getWidth(), screenHeight - y);
|
float maxVisibleHeight = screenHeight - y;
|
||||||
|
paneSize = updateAndGetPaneSize(FComboBox.this.getWidth(), maxVisibleHeight);
|
||||||
|
|
||||||
setBounds(Math.round(x), Math.round(y), Math.round(FComboBox.this.getWidth()), Math.round(paneSize.getHeight()));
|
setBounds(Math.round(x), Math.round(y), Math.round(FComboBox.this.getWidth()), Math.min(Math.round(paneSize.getHeight()), maxVisibleHeight));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
Reference in New Issue
Block a user