Skip to content

Commit

Permalink
Fixing the issue of broken layout in the permission popup.
Browse files Browse the repository at this point in the history
  • Loading branch information
sunggyu-kam committed Apr 3, 2024
1 parent f202494 commit 5ef6288
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion core
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,6 @@ public JComponent makeFilterExtendPanel() {
final JPanel filterExtendPanel = new JPanel();
filterExtendPanel.setLayout(new BoxLayout(filterExtendPanel, BoxLayout.Y_AXIS));
filterExtendPanel.setVisible(false);
filterExtendPanel.setPreferredSize(new Dimension(0, 20));

Box box = Box.createHorizontalBox();
box.setAlignmentX(0f);
Expand Down Expand Up @@ -350,7 +349,6 @@ public void itemStateChanged(ItemEvent e) {
PermissionInfoExt.protectionFlagsToString(PermissionInfo.PROTECTION_MASK_BASE);
for (String flag : allFlags.split("\\|")) {
JCheckBox ckBox = new JCheckBox(flag);
ckBox.setMinimumSize(new Dimension(0, 20));
ckBox.setActionCommand(flag);
ckBox.setToolTipText(flag);
ckBox.setSelected(true);
Expand All @@ -368,7 +366,6 @@ public void itemStateChanged(ItemEvent e) {
for (String flag : allFlags.split("\\|")) {
if (flag.isEmpty()) continue;
JCheckBox ckBox = new JCheckBox(flag);
ckBox.setMinimumSize(new Dimension(0, 20));
ckBox.setActionCommand("|" + flag);
ckBox.setToolTipText(flag);
ckBox.addItemListener(listener);
Expand Down

0 comments on commit 5ef6288

Please sign in to comment.