N*WidgetSettingsDialog: properly force max 80% screen height (#1777)

This commit is contained in:
Lysec
2026-02-11 10:26:32 +01:00
parent 9a20838904
commit 6fbf7795af
5 changed files with 5 additions and 5 deletions
@@ -18,12 +18,11 @@ Popup {
signal updateWidgetSettings(string section, int index, var settings)
readonly property real maxHeight: screen ? screen.height * 0.9 : 800
readonly property real maxHeight: (screen ? screen.height : (parent ? parent.height : 800)) * 0.8
readonly property real defaultContentWidth: Math.round(600 * Style.uiScaleRatio)
readonly property real settingsContentWidth: {
if (settingsLoader.item && settingsLoader.item.implicitWidth > 0) {
return settingsLoader.item.implicitWidth;
d;
}
return defaultContentWidth;
}