mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
use actual size of combo label for popup minimum size
This commit is contained in:
+1
-1
@@ -145,7 +145,7 @@ class ComboContentLayout extends ContentLayout {
|
||||
|
||||
@Override
|
||||
public void showContentPopup(ListPopup listPopup) {
|
||||
listPopup.setMinimumSize(new Dimension(myComboLabel.getPreferredSize().width, 0));
|
||||
listPopup.setMinimumSize(new Dimension(myComboLabel.getSize().width, 0));
|
||||
listPopup.showUnderneathOf(myComboLabel);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user