on xenial help sign in
Don't bother checking screen size
commitc31ba8dd726bac7d1a56487d949e5094a4573c90 authorMichael Terry <michael.terry@canonical.com> dateFri 1 Apr 2016, 12:40 (11 years ago) parent35657ba
1 file changed+2−2
qml/OrientedShell.qml+2−2
qml/OrientedShell.qml+2−2
@@ -103,8 +103,8 @@ Rectangle {
103103 root.unity8Settings.usageMode = "Staged";
104104 }
105105 } else {
106− var longEdgeWidth = Math.max(Screen.width, Screen.height);
107− if (longEdgeWidth > units.gu(90)) {
106+ var longEdgeWidth = Math.max(root.width, root.height)
107+ if (longEdgeWidth > units.gu(90)){
108108 if (pointerInputDevices > 0 && pointerInputDevices > miceModel.oldCount + touchPadModel.oldCount) {
109109 root.unity8Settings.usageMode = "Windowed";
110110 }