summaryrefslogtreecommitdiffstats
path: root/qml/mageiawelcome.py
diff options
context:
space:
mode:
Diffstat (limited to 'qml/mageiawelcome.py')
-rw-r--r--qml/mageiawelcome.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/qml/mageiawelcome.py b/qml/mageiawelcome.py
index 83193d9..310d2e8 100644
--- a/qml/mageiawelcome.py
+++ b/qml/mageiawelcome.py
@@ -191,8 +191,8 @@ if __name__ == '__main__':
sc = nr.startupcheck()
factor = cl.factor(app)
screen = app.primaryScreen()
- defaultHeight = 700 * factor
- defaultWidth = 1000 * factor
+ defaultHeight = min(700 * factor, screen.availableGeometry().height())
+ defaultWidth = min(1000 * factor, screen.availableGeometry().width())
centerPoint = screen.availableGeometry().center()
view.setGeometry(centerPoint.x() -defaultWidth/2, centerPoint.y() - defaultHeight/2, defaultWidth,defaultHeight)
view.rootContext().setContextProperty('link', cb)