Skip to content

Commit

Permalink
Update open OpenOfficePanel to show buttons in three rows of three. (#…
Browse files Browse the repository at this point in the history
…5789)

* Update open OpenOfficePanel to show buttons in three rows of three.

* Update CHANGELOG.md

Co-authored-by: Tobias Diez <[email protected]>
  • Loading branch information
ddunig2 and tobiasdiez authored Feb 6, 2020
1 parent 6fda10a commit 9407bef
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ We refer to [GitHub issues](https://github.com/JabRef/jabref/issues) by using `#
## [Unreleased]

### Changed
- we changed the open office panel to show buttons in rows of three instead of going straight down to save space as the button expanded out to take up unnecessary horizontal space [#5479] (https://github.com/JabRef/jabref/issues/5479)

- We cleaned up the group add/edit dialog. [#5826](https://github.com/JabRef/jabref/pull/5826)
- We reintroduced the index column. [#5844](https://github.com/JabRef/jabref/pull/5844)
Expand Down
12 changes: 11 additions & 1 deletion src/main/java/org/jabref/gui/openoffice/OpenOfficePanel.java
Original file line number Diff line number Diff line change
Expand Up @@ -269,8 +269,18 @@ private void initPanel() {
hbox.getChildren().addAll(connect, manualConnect, selectDocument, update, help);
hbox.getChildren().forEach(btn -> HBox.setHgrow(btn, Priority.ALWAYS));

VBox row1 = new VBox();
VBox row2 = new VBox();
VBox row3 = new VBox();
row1.getChildren().addAll(setStyleFile,pushEntries, pushEntriesInt);
row2.getChildren().addAll(pushEntriesAdvanced, pushEntriesEmpty, merge);
row3.getChildren().addAll(manageCitations, exportCitations, settingsB);
HBox hbox1 = new HBox();
hbox1.getChildren().addAll(row1,row2,row3);
hbox1.getChildren().forEach(btn -> HBox.setHgrow(btn, Priority.ALWAYS));

vbox.setFillWidth(true);
vbox.getChildren().addAll(hbox, setStyleFile, pushEntries, pushEntriesInt, pushEntriesAdvanced, pushEntriesEmpty, merge, manageCitations, exportCitations, settingsB);
vbox.getChildren().addAll(hbox, hbox1);
}

private void exportEntries() {
Expand Down

0 comments on commit 9407bef

Please sign in to comment.