IDEA-195589 Structure popup has weird initial size

This commit is contained in:
Vassiliy.Kudryashov
2018-07-17 00:13:49 +03:00
parent 572ada016f
commit 21439f7e57
@@ -492,6 +492,7 @@ public class FileStructurePopup implements Disposable, TreeActionsOwner {
int checkBoxCount = fileStructureNodeProviders.size() + fileStructureFilters.size();
JPanel panel = new JPanel(new BorderLayout());
panel.setPreferredSize(JBUI.size(540, 500));
JPanel chkPanel = new JPanel(new GridLayout(0, checkBoxCount > 0 && checkBoxCount % 4 == 0 ? checkBoxCount / 2 : 3,
JBUI.scale(UIUtil.DEFAULT_HGAP), 0));
chkPanel.setOpaque(false);