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 @@ -33,6 +33,7 @@ Note that this project **does not** adhere to [Semantic Versioning](https://semv
- 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 fixed an issue where citationcount, day, and dayfiled columns were sorted alphabetically instead of numerically. [#17459](https://github.com/JabRef/jabref/issues/17459)
- We fixed an issue where the side panels were not reachable in small windows. [#17470](https://github.com/JabRef/jabref/issues/17470)

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

Expand Down
17 changes: 13 additions & 4 deletions jabgui/src/main/java/org/jabref/gui/frame/JabRefFrame.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
import javafx.event.Event;
import javafx.geometry.Orientation;
import javafx.scene.control.ContextMenu;
import javafx.scene.control.ScrollPane;
import javafx.scene.control.SeparatorMenuItem;
import javafx.scene.control.SplitPane;
import javafx.scene.control.Tab;
Expand Down Expand Up @@ -110,6 +111,7 @@ private enum PanelMode { MAIN_TABLE, MAIN_TABLE_AND_ENTRY_EDITOR }
private final GuiPushToApplicationCommand pushToApplicationCommand;
private final SplitPane horizontalSplit = new SplitPane();
private final SidePane sidePane;
private final ScrollPane sidePaneScroll = new ScrollPane();
private final SplitPane verticalSplit = new SplitPane();
private final TabPane tabbedPane = new TabPane();
private final EntryEditor entryEditor;
Expand Down Expand Up @@ -263,7 +265,14 @@ private void initLayout() {
horizontalSplit.getItems().addAll(verticalSplit);
horizontalSplit.setOrientation(Orientation.HORIZONTAL);

SplitPane.setResizableWithParent(sidePane, false);
sidePaneScroll.setContent(sidePane);
sidePaneScroll.setFitToWidth(true);
sidePaneScroll.setFitToHeight(true);
sidePaneScroll.setHbarPolicy(ScrollPane.ScrollBarPolicy.AS_NEEDED);
sidePaneScroll.setVbarPolicy(ScrollPane.ScrollBarPolicy.AS_NEEDED);
sidePaneScroll.getStyleClass().add("side-pane-scroll");

SplitPane.setResizableWithParent(sidePaneScroll, false);
sidePane.widthProperty().addListener(_ -> updateSidePane());
sidePane.getChildren().addListener((InvalidationListener) _ -> updateSidePane());
updateSidePane();
Expand All @@ -273,11 +282,11 @@ private void initLayout() {
private void updateSidePane() {
if (sidePane.getChildren().isEmpty()) {
unsubscribeHorizontalDivider();
horizontalSplit.getItems().remove(sidePane);
horizontalSplit.getItems().remove(sidePaneScroll);
} else {
if (!horizontalSplit.getItems().contains(sidePane)) {
if (!horizontalSplit.getItems().contains(sidePaneScroll)) {
horizontalSplit.setVisible(false);
horizontalSplit.getItems().addFirst(sidePane);
horizontalSplit.getItems().addFirst(sidePaneScroll);
Platform.runLater(() -> {
updateHorizontalDividerPosition();
horizontalSplit.setVisible(true);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import javafx.scene.layout.BorderPane;
import javafx.scene.layout.HBox;
import javafx.scene.layout.Priority;
import javafx.scene.layout.Region;
import javafx.scene.layout.VBox;

import org.jabref.gui.actions.SimpleCommand;
Expand Down Expand Up @@ -42,6 +43,12 @@ private void initialize() {
setTop(createHeaderView());
setCenter(contentFactory.create(sidePaneType));
VBox.setVgrow(this, sidePaneType == SidePaneType.GROUPS ? Priority.ALWAYS : Priority.NEVER);

if (sidePaneType == SidePaneType.GROUPS) {
setMinHeight(220);
} else {
setMinHeight(Region.USE_PREF_SIZE);
}
}

private Node createHeaderView() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1753,3 +1753,11 @@ We want to have a look that matches our icons in the tool-bar */
.flashing-danger {
-fx-background-color: -color-danger;
}

.side-pane-scroll {
-fx-padding: 0;
}

.side-pane-scroll > .scroll-bar:vertical {
-fx-padding: 0 4 0 4;
}
Loading