Skip to content

Commit dc9c5e9

Browse files
committed
Revert "Fix #5615 side pane not remembering position (#5629)"
This reverts commit 9ab537f.
1 parent 9d620f1 commit dc9c5e9

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

CHANGELOG.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,6 @@ We refer to [GitHub issues](https://github.com/JabRef/jabref/issues) by using `#
6666
- We fixed visibility issues with the scrollbar and group selection highlight in "Dark" mode, and enabled "Dark" mode for the OpenOffice preview in the style selection window. [#5522](https://github.com/JabRef/jabref/issues/5522)
6767
- We fixed an issue where the author field was not correctly parsed during bibtex key-generation. [#5551](https://github.com/JabRef/jabref/issues/5551)
6868
- We fixed an issue where notifications where shown during autosave. [#5555](https://github.com/JabRef/jabref/issues/5555)
69-
- We fixed an issue where the side pane was not remembering its position. [#5615](https://github.com/JabRef/jabref/issues/5615)
7069

7170
### Removed
7271

src/main/java/org/jabref/gui/JabRefFrame.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -410,6 +410,7 @@ private void initLayout() {
410410
head.setCenter(createToolbar());
411411
setTop(head);
412412

413+
SplitPane.setResizableWithParent(sidePane, Boolean.FALSE);
413414
splitPane.getItems().addAll(sidePane, tabbedPane);
414415

415416
// We need to wait with setting the divider since it gets reset a few times during the initial set-up
@@ -422,8 +423,6 @@ public void changed(ObservableValue<? extends Boolean> observable, Boolean oldVa
422423

423424
EasyBind.subscribe(sidePane.visibleProperty(), visible -> {
424425
if (visible) {
425-
// Run SplitPane.setResizableWithParent later to avoid miscalculation during initial layouting
426-
Platform.runLater(() -> SplitPane.setResizableWithParent(sidePane, Boolean.FALSE));
427426
if (!splitPane.getItems().contains(sidePane)) {
428427
splitPane.getItems().add(0, sidePane);
429428
setDividerPosition();

0 commit comments

Comments
 (0)