Skip to content
Open
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
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ Note that this project **does not** adhere to [Semantic Versioning](https://semv
- We fixed unreadable linked-file paths and indistinguishable selection backgrounds in the entry editor when using dark mode. [#17364](https://github.com/JabRef/jabref/issues/17364)
- We fixed an issue where back navigation selected a deleted entry instead of skipping it. [#17353](https://github.com/JabRef/jabref/issues/17353)
- We fixed the linked file tooltip showing the old file name after renaming or moving the file. [#9277](https://github.com/JabRef/jabref/issues/9277)
- We reduced the flickering of the entry editor when switching between entries with groups or keywords. [#17229](https://github.com/JabRef/jabref/issues/17229)

## [6.0-beta.1] - 2026-09-21

Expand Down
24 changes: 24 additions & 0 deletions jabgui/src/main/java/org/jabref/gui/fieldeditors/TagsEditor.java
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,30 @@ private Node createTag(Keyword tag) {
protected void customizeTag(Label tagLabel, Keyword tag) {
}

/// While the [#tagsField] has no width yet, GemsFX's `FlowPane` puts every tag on its own row,
/// so the first layout pass would reserve one row per tag. The height then drops once the real width is known,
/// which makes the editor flicker. Until the field has a width, report the height of a single row instead.
/// Both the minimum and the preferred height are overridden because the grid uses the larger of the two.
private double singleRowHeight() {
return snappedTopInset() + tagsField.prefHeight(-1) + snappedBottomInset();
}

@Override
protected double computeMinHeight(double width) {
if (tagsField.getWidth() <= 0) {
return singleRowHeight();
}
return super.computeMinHeight(width);
}

@Override
protected double computePrefHeight(double width) {
if (tagsField.getWidth() <= 0) {
return singleRowHeight();
}
return super.computePrefHeight(width);
}

@Override
public Parent getNode() {
return this;
Expand Down
Loading