mirror of
https://github.com/noctalia-dev/noctalia-shell.git
synced 2026-05-11 17:08:27 +08:00
N*WidgetSettingsDialog: properly force max 80% screen height (#1777)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user