Skip to content
Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -384,6 +384,9 @@ private static final class VersionsPageSkin extends SkinBase<VersionsPage> {
{
list = new JFXListView<>();
list.getStyleClass().add("jfx-list-view-float");

list.setFixedCellSize(65);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

Setting a hardcoded fixed cell size of 65 is very tight and risks clipping the cell content.

The cell layout (RemoteVersionListCell) has a top and bottom margin of 10 each (totaling 20 pixels of vertical margin). This leaves only 45 pixels of vertical space for the cell content. Within this space, the cell renders a TwoLineListItem which contains a title, potentially tags, and a subtitle.

If the user has a slightly larger system font, or on operating systems with different default font metrics (such as some Linux distributions or when using Chinese system fonts), the combined height of these two lines can easily exceed 45 pixels, leading to vertical clipping or text truncation.

Using a slightly larger and safer height (e.g., 72 pixels) provides enough headroom to prevent layout breakage while retaining the performance benefits of setFixedCellSize.

Suggested change
list.setFixedCellSize(65);
// Use 72 to provide headroom for two-line items with tags and prevent clipping
list.setFixedCellSize(72);


VBox.setVgrow(list, Priority.ALWAYS);

control.versions.addListener((InvalidationListener) o -> updateList());
Expand Down