Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix issue #520 https://github.com/processing/processing4/issues/520 #539

Merged
merged 1 commit into from
Aug 20, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -89,3 +89,7 @@ bin-test
# dated folders
/19*
/20*

# VS Code Java project files
.project
.vscode/
6 changes: 5 additions & 1 deletion app/src/processing/app/contrib/ContributionTab.java
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,8 @@ protected void setLayout() {
.addGroup(layout.createParallelGroup(GroupLayout.Alignment.CENTER)
.addComponent(categoryChooser)
.addComponent(filterField))
.addPreferredGap(LayoutStyle.ComponentPlacement.UNRELATED)
// fix for issue #520 https://github.com/processing/processing4/issues/520
.addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
.addGroup(layout.createParallelGroup(GroupLayout.Alignment.CENTER)
.addComponent(loaderLabel)
.addComponent(listPanel))
Expand Down Expand Up @@ -270,6 +271,9 @@ protected void updateCategoryChooser() {
Set<String> categories = listCategories();
if (categories.size() == 1 &&
categories.contains(Contribution.UNKNOWN_CATEGORY)) {
// Add dummy item for sizing purpose
// fix for issue #520 https://github.com/processing/processing4/issues/520
categoryChooser.addItem("NULL");
// If no unique categories, hide the category chooser
categoryChooser.setVisible(false);

Expand Down