Skip to content

Commit a3277d9

Browse files
committed
If a code tab is closed then resizes all open code tabs to equal sizes.
1 parent ec9fc91 commit a3277d9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main/java/ee/ut/similaritydetector/ui/controllers/CodeViewController.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ public void addCodePane(CodePaneController codePaneController) {
7777
public void removeCodePane(CodePaneController codePaneController) {
7878
Platform.runLater(() -> openCodePanes.remove(codePaneController));
7979
Platform.runLater(() -> codeSplitPane.getItems().remove(codePaneController.getRoot()));
80+
Platform.runLater(this::resizeCodePanes);
8081
}
8182

8283
public List<CodePaneController> getOpenCodePanes() {

0 commit comments

Comments
 (0)