File tree 2 files changed +9
-1
lines changed
app/src/processing/app/contrib 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -89,3 +89,7 @@ bin-test
89
89
# dated folders
90
90
/19 *
91
91
/20 *
92
+
93
+ # VS Code Java project files
94
+ .project
95
+ .vscode /
Original file line number Diff line number Diff line change @@ -161,7 +161,8 @@ protected void setLayout() {
161
161
.addGroup (layout .createParallelGroup (GroupLayout .Alignment .CENTER )
162
162
.addComponent (categoryChooser )
163
163
.addComponent (filterField ))
164
- .addPreferredGap (LayoutStyle .ComponentPlacement .UNRELATED )
164
+ // fix for issue #520 https://github.com/processing/processing4/issues/520
165
+ .addPreferredGap (LayoutStyle .ComponentPlacement .RELATED )
165
166
.addGroup (layout .createParallelGroup (GroupLayout .Alignment .CENTER )
166
167
.addComponent (loaderLabel )
167
168
.addComponent (listPanel ))
@@ -270,6 +271,9 @@ protected void updateCategoryChooser() {
270
271
Set <String > categories = listCategories ();
271
272
if (categories .size () == 1 &&
272
273
categories .contains (Contribution .UNKNOWN_CATEGORY )) {
274
+ // Add dummy item for sizing purpose
275
+ // fix for issue #520 https://github.com/processing/processing4/issues/520
276
+ categoryChooser .addItem ("NULL" );
273
277
// If no unique categories, hide the category chooser
274
278
categoryChooser .setVisible (false );
275
279
You can’t perform that action at this time.
0 commit comments