remove max width and max heigth

This commit is contained in:
Martin Beyer
2021-08-24 17:37:15 +02:00
parent 4223d15c08
commit b529764eb4
2 changed files with 4 additions and 2 deletions

View File

@@ -53,8 +53,6 @@ abstract class MainWindowModule {
Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
stage.setMinWidth(650);
stage.setMinHeight(440);
stage.setMaxWidth(screenSize.getWidth());
stage.setMaxHeight(screenSize.getHeight());
stage.setTitle("Cryptomator");
return stage;
}

View File

@@ -48,7 +48,11 @@ public class ResizeController implements FxController {
window.setY(settings.windowYPositionProperty().get());
window.setX(settings.windowXPositionProperty().get());
window.setHeight(settings.windowHeightProperty().get());
//TODO: remove comments
//window.setHeight(settings.windowHeightProperty().get() > window.getMaxHeight() ? window.getMaxHeight() * 0.95 : settings.windowHeightProperty().get());
window.setWidth(settings.windowWidthProperty().get());
//window.setWidth(settings.windowWidthProperty().get() > window.getMaxWidth() ? window.getMaxWidth() * 0.95 : settings.windowWidthProperty().get());
}
private void startResize(MouseEvent evt) {