Skip to content

Commit

Permalink
MARGINS_DEFAULT leads to IllegalArgumentException
Browse files Browse the repository at this point in the history
fixed IllegalArgumentException when creating a GridLayout with MARGINS_DEFAULT
  • Loading branch information
aLiEnHeAd13 authored and iloveeclipse committed Mar 19, 2024
1 parent c74c800 commit 3efaad6
Showing 1 changed file with 1 addition and 0 deletions.
Expand Up @@ -218,6 +218,7 @@ public static GridLayout createGridLayout(int numColumns, PixelConverter convert
case MARGINS_DEFAULT:
layout.marginLeft= layout.marginRight= layout.marginWidth;
layout.marginTop= layout.marginBottom= layout.marginHeight;
break;
default:
throw new IllegalArgumentException(Integer.toString(margins));
}
Expand Down

0 comments on commit 3efaad6

Please sign in to comment.