Skip to content

Commit

Permalink
Disable tab closing/creation animation
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiasdiez committed Oct 23, 2017
1 parent 2d78cfc commit cd6a2f8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/java/org/jabref/gui/entryeditor/EntryEditor.java
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,9 @@ public EntryEditor(BasePanel panel) {
setupToolBar();
DefaultTaskExecutor.runInJavaFXThread(() -> {
tabbed.setTabClosingPolicy(TabPane.TabClosingPolicy.UNAVAILABLE);
tabbed.setStyle("-fx-font-size: " + Globals.prefs.getFontSizeFX() + "pt;");
tabbed.setStyle(
"-fx-font-size: " + Globals.prefs.getFontSizeFX() + "pt;" +
"-fx-open-tab-animation: NONE; -fx-close-tab-animation: NONE;");
container.setScene(new Scene(tabbed));
});
add(container, BorderLayout.CENTER);
Expand Down

0 comments on commit cd6a2f8

Please sign in to comment.