on xenial help sign in
also switch the min/maxwidth/height
commite2de895abee62b33529d53931608ef22856e2f0c authorAlbert Astals Cid <albert.astals@canonical.com> dateThu 10 Mar 2016, 14:36 (11 years ago) parentfdefead
1 file changed+6−6
qml/Stages/DecoratedWindow.qml+6−6
qml/Stages/DecoratedWindow.qml+6−6
@@ -42,12 +42,12 @@ FocusScope {
4242 readonly property real visibleDecorationHeight: root.decorationShown ? decoration.height : 0
4343 readonly property bool counterRotate: surfaceOrientationAngle != 0 && surfaceOrientationAngle != 180
4444
45− property alias minimumWidth: applicationWindow.minimumWidth
46− readonly property int minimumHeight: (root.decorationShown ? decoration.height : 0) + applicationWindow.minimumHeight
47− property alias maximumWidth: applicationWindow.maximumWidth
48− readonly property int maximumHeight: (root.decorationShown ? decoration.height : 0) + applicationWindow.maximumHeight
49− property alias widthIncrement: applicationWindow.widthIncrement
50− property alias heightIncrement: applicationWindow.heightIncrement
45+ readonly property int minimumWidth: !counterRotate ? applicationWindow.minimumWidth : applicationWindow.minimumHeight
46+ readonly property int minimumHeight: visibleDecorationHeight + (!counterRotate ? applicationWindow.minimumHeight : applicationWindow.minimumWidth)
47+ readonly property int maximumWidth: !counterRotate ? applicationWindow.maximumWidth : applicationWindow.maximumHeight
48+ readonly property int maximumHeight: visibleDecorationHeight + (!counterRotate ? applicationWindow.maximumHeight : applicationWindow.maximumWidth)
49+ readonly property int widthIncrement: !counterRotate ? applicationWindow.widthIncrement : applicationWindow.heightIncrement
50+ readonly property int heightIncrement: !counterRotate ? applicationWindow.heightIncrement : applicationWindow.widthIncrement
5151
5252 signal close()
5353 signal maximize()