Skip to content
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
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@ Note that this project **does not** adhere to [Semantic Versioning](https://semv
- We fixed an issue where long entry previews were cut off without a vertical scrollbar. [#17359](https://github.com/JabRef/jabref/issues/17359)
- We fixed an issue where linked files in the entry editor were not updated immediately upon addition or removal. [#16067](https://github.com/JabRef/jabref/issues/16067)
- We fixed an issue where the Semantic Scholar API key was ignored when fetching citations and references. [#17291](https://github.com/JabRef/jabref/issues/17291)
- We fixed clipped citation controls and metrics in small windows by adding horizontal scrolling. [#17897](https://github.com/JabRef/jabref/issues/17897)
- We fixed API key validation when saving a new or edited key. [#17012](https://github.com/JabRef/jabref/pull/17012)
- 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 an issue where JabRef asked to store a library's custom entry types at every start. [#9930](https://github.com/JabRef/jabref/issues/9930)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
import javafx.scene.control.Label;
import javafx.scene.control.MenuItem;
import javafx.scene.control.ProgressIndicator;
import javafx.scene.control.ScrollPane;
import javafx.scene.control.SplitMenuButton;
import javafx.scene.control.SplitPane;
import javafx.scene.control.ToggleButton;
Expand Down Expand Up @@ -848,15 +849,19 @@ protected void bindToEntry(BibEntry entry) {

SplitPane splitPane = getPaneAndStartSearch(entry);
splitPane.setMaxSize(Double.MAX_VALUE, Double.MAX_VALUE);
splitPane.setMinSize(0, 0);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Why was this changed?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

lets say two columns needs 600 pixels, but the window only having 400 pixels
old code allows the columns to be squeezed into 400 pixels
New code lets them keep the width they need and scroll sideways to see the rest

splitPane.setMinHeight(0);

BorderPane root = new BorderPane();
root.setTop(getTopBar());
root.setCenter(splitPane);
root.setBottom(sciteResultsPane);
root.setMaxSize(Double.MAX_VALUE, Double.MAX_VALUE);

setContent(root);
ScrollPane scrollPane = new ScrollPane(root);
scrollPane.setHbarPolicy(ScrollPane.ScrollBarPolicy.AS_NEEDED);
scrollPane.setFitToWidth(true);
scrollPane.setFitToHeight(true);
setContent(scrollPane);
}

@Override
Expand Down
Loading