Skip to content

Commit 87c0185

Browse files
committed
Disable minimap resizing
Resizing the minimap canvas caused the main window tool pane resizing to stop working after switching tab. fixes #469 (github)
1 parent cbef72f commit 87c0185

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

chunky/src/java/se/llbit/chunky/ui/ChunkyFxController.java

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -215,14 +215,6 @@ public ChunkyFxController(Chunky chunky) {
215215
mapLoader.setMapSize((int) mapCanvas.getWidth(), (int) mapCanvas.getHeight());
216216
});
217217

218-
minimapPane.widthProperty().addListener((observable, oldValue, newValue) -> {
219-
minimapCanvas.setWidth(newValue.doubleValue());
220-
mapLoader.setMinimapSize((int) minimapCanvas.getWidth(), (int) minimapCanvas.getHeight());
221-
});
222-
minimapPane.heightProperty().addListener((observable, oldValue, newValue) -> {
223-
minimapCanvas.setHeight(newValue.doubleValue());
224-
mapLoader.setMinimapSize((int) minimapCanvas.getWidth(), (int) minimapCanvas.getHeight());
225-
});
226218
mapOverlay.setOnMouseExited(e -> map.tooltip.hide());
227219

228220
// Set up property bindings for the map view.

0 commit comments

Comments
 (0)