mirror of
https://github.com/cryptomator/cryptomator.git
synced 2026-04-22 10:36:55 -04:00
remove max width and max heigth
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user