Skip to content

Commit

Permalink
Merge pull request #193 from saalfeldlab/psc-screen-scales
Browse files Browse the repository at this point in the history
Apply screen scale changes in PainteraShowContainer
  • Loading branch information
hanslovsky authored Jan 28, 2019
2 parents 1e61f96 + 87301ba commit 223b7d6
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,7 @@ public void start(Stage primaryStage) throws Exception {


final Scene scene = new Scene(viewer.paneWithStatus.getPane(), clArgs.width, clArgs.height);
viewer.paneWithStatus.screenScalesConfigNode().screenScalesProperty().addListener((obs, oldv, newv) -> viewer.baseView.orthogonalViews().setScreenScales(newv.getScalesCopy()));
viewer.keyTracker.installInto(scene);
primaryStage.setScene(scene);
primaryStage.show();
Expand Down

0 comments on commit 223b7d6

Please sign in to comment.