Skip to content

Commit 40d9c66

Browse files
committed
fix issue #520 #520
1 parent 077628d commit 40d9c66

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,3 +89,7 @@ bin-test
8989
# dated folders
9090
/19*
9191
/20*
92+
93+
# VS Code Java project files
94+
.project
95+
.vscode/

app/src/processing/app/contrib/ContributionTab.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,8 @@ protected void setLayout() {
161161
.addGroup(layout.createParallelGroup(GroupLayout.Alignment.CENTER)
162162
.addComponent(categoryChooser)
163163
.addComponent(filterField))
164-
.addPreferredGap(LayoutStyle.ComponentPlacement.UNRELATED)
164+
// fix for issue #520 https://github.com/processing/processing4/issues/520
165+
.addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
165166
.addGroup(layout.createParallelGroup(GroupLayout.Alignment.CENTER)
166167
.addComponent(loaderLabel)
167168
.addComponent(listPanel))
@@ -270,6 +271,9 @@ protected void updateCategoryChooser() {
270271
Set<String> categories = listCategories();
271272
if (categories.size() == 1 &&
272273
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");
273277
// If no unique categories, hide the category chooser
274278
categoryChooser.setVisible(false);
275279

0 commit comments

Comments
 (0)