on xenial help sign in
fix camera app rotation, *finally*
commit5eb6a54c0e7e728b5fbfa5dc655dae1ba08a589f authorMichael Zanetti <michael.zanetti@canonical.com> dateTue 20 Sep 2016, 17:24 (10 years ago) parentb0fbd77
1 file changed+4−4
qml/Stage/DecoratedWindow.qml+4−4
qml/Stage/DecoratedWindow.qml+4−4
@@ -92,8 +92,8 @@ FocusScope {
9292 name: "normal"; when: root.scaleToPreviewProgress <= 0
9393 PropertyChanges {
9494 target: root
95− implicitWidth: applicationWindow.implicitWidth
96− implicitHeight: root.decorationHeight + applicationWindow.implicitHeight
95+ implicitWidth: counterRotate ? applicationWindow.implicitHeight : applicationWindow.implicitWidth
96+ implicitHeight: root.decorationHeight + (counterRotate ? applicationWindow.implicitWidth: applicationWindow.implicitHeight)
9797 }
9898 },
9999 State {
@@ -175,8 +175,8 @@ FocusScope {
175175 anchors.top: parent.top
176176 anchors.topMargin: root.decorationHeight * Math.min(1, root.showDecoration)
177177 anchors.left: parent.left
178− width: root.width
179− height: root.height - anchors.topMargin
178+ width: requestedWidth
179+ height: requestedHeight
180180 requestedHeight: !counterRotate ? root.requestedHeight - d.requestedDecorationHeight : root.requestedWidth
181181 requestedWidth: !counterRotate ? root.requestedWidth : root.requestedHeight - d.requestedDecorationHeight
182182 property int oldRequestedWidth: requestedWidth