Fix scale of Add Machine and Select (Per Object) Settings dialogs...

... on fairly high, but non-"retina" screens.

I have a new laptop with a 13" 1080p display, which I use at its native resolution. This works fine for most dialogs, except the mentioned two which are shown comically large.
This commit is contained in:
fieldOfView 2016-12-23 12:55:16 +01:00
parent fda18286e3
commit cbf553aad1
2 changed files with 6 additions and 1 deletions

View file

@ -322,7 +322,7 @@ Item {
id: settingPickDialog id: settingPickDialog
title: catalog.i18nc("@title:window", "Select Settings to Customize for this model") title: catalog.i18nc("@title:window", "Select Settings to Customize for this model")
width: screenScaleFactor * 360; width: Screen.devicePixelRatio * 360;
property string labelFilter: "" property string labelFilter: ""

View file

@ -20,6 +20,11 @@ UM.Dialog
property string preferredCategory: "Ultimaker" property string preferredCategory: "Ultimaker"
property string activeCategory: preferredCategory property string activeCategory: preferredCategory
minimumWidth: UM.Theme.getSize("modal_window_minimum").width
minimumHeight: UM.Theme.getSize("modal_window_minimum").height
width: minimumWidth
height: minimumHeight
onVisibilityChanged: onVisibilityChanged:
{ {
// Reset selection and machine name // Reset selection and machine name