Skip to content

Commit

Permalink
Fix for zero-sized command button panels
Browse files Browse the repository at this point in the history
Don't try to layout content of command button panels that are 0-sized. Together with 8ac90cb, this closes #359
  • Loading branch information
kirill-grouchnikov committed Sep 21, 2021
1 parent 8ac90cb commit 530f040
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,10 @@ public void removeLayoutComponent(Component comp) {

@Override
public void layoutContainer(Container parent) {
if ((parent.getWidth() <= 0) || (parent.getHeight() <= 0)) {
return;
}

Insets bInsets = parent.getInsets();
Insets groupInsets = getGroupInsets();
int left = bInsets.left;
Expand Down

0 comments on commit 530f040

Please sign in to comment.