Commit f873e375 authored by Marco Martin's avatar Marco Martin
Browse files

adjust a bit containment config view sizing

parent 335d75d8
......@@ -29,8 +29,8 @@ import org.kde.plasma.configuration 2.0
//TODO: all of this will be done with desktop components
Rectangle {
id: root
Layout.minimumWidth: plasmoid.availableScreenRect.width
Layout.minimumHeight: plasmoid.availableScreenRect.height
// Layout.minimumWidth: plasmoid.availableScreenRect.width
// Layout.minimumHeight: plasmoid.availableScreenRect.height
LayoutMirroring.enabled: Qt.application.layoutDirection === Qt.RightToLeft
......
......@@ -34,8 +34,8 @@ AppletConfiguration {
isContainment: true
internalDialog.visible: false
internalDialog.width: Math.min(root.height - units.gridUnit * 2, Math.max(internalDialog.implicitWidth, units.gridUnit * 45))
internalDialog.height: Math.min(root.width, Math.max(internalDialog.implicitHeight, units.gridUnit * 29))
internalDialog.width: root.width < root.height ? root.width : Math.min(root.width, Math.max(internalDialog.implicitWidth, units.gridUnit * 45))
internalDialog.height: Math.min(root.height, Math.max(internalDialog.implicitHeight, units.gridUnit * 29))
readonly property bool horizontal: root.width > root.height
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment