From 9fe3eb4f01da4a8ae9e6c0aa2c93fa78f2807d0e Mon Sep 17 00:00:00 2001 From: fieldOfView Date: Thu, 7 Apr 2016 18:06:38 +0200 Subject: [PATCH] Add width, height in addition to minimumWidth, minumumHeight to fix retina issue on OSX Without these additions, windows (preferences, wizards, about) open larger than fullscreen, making some controls inaccessible Fixes CURA-504 --- plugins/ChangeLogPlugin/ChangeLog.qml | 6 ++++-- resources/qml/AboutDialog.qml | 7 +++++-- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/plugins/ChangeLogPlugin/ChangeLog.qml b/plugins/ChangeLogPlugin/ChangeLog.qml index 86f80410d5..69af3192d1 100644 --- a/plugins/ChangeLogPlugin/ChangeLog.qml +++ b/plugins/ChangeLogPlugin/ChangeLog.qml @@ -11,8 +11,10 @@ import UM 1.1 as UM UM.Dialog { id: base - minimumWidth: 400 - minimumHeight: 300 + minimumWidth: 400 * Screen.devicePixelRatio + minimumHeight: 300 * Screen.devicePixelRatio + width: minimumWidth + height: minimumHeight title: catalog.i18nc("@label", "Changelog") ScrollView diff --git a/resources/qml/AboutDialog.qml b/resources/qml/AboutDialog.qml index eb8795c5a6..e81c0e3ca8 100644 --- a/resources/qml/AboutDialog.qml +++ b/resources/qml/AboutDialog.qml @@ -13,8 +13,11 @@ UM.Dialog //: About dialog title title: catalog.i18nc("@title:window","About Cura") - minimumWidth: 400 - minimumHeight: 300; + + minimumWidth: 400 * Screen.devicePixelRatio + minimumHeight: 300 * Screen.devicePixelRatio + width: minimumWidth + height: minimumHeight //UM.I18nCatalog { id: catalog; }