@@ -103,8 +103,8 @@ Rectangle {
103 root.unity8Settings.usageMode = "Staged";
103 root.unity8Settings.usageMode = "Staged";
106− var longEdgeWidth = Math.max(Screen.width, Screen.height);
106+ var longEdgeWidth = Math.max(root.width, root.height)
107− if (longEdgeWidth > units.gu(90)) {
107+ if (longEdgeWidth > units.gu(90)){
108 if (pointerInputDevices > 0 && pointerInputDevices > miceModel.oldCount + touchPadModel.oldCount) {
108 if (pointerInputDevices > 0 && pointerInputDevices > miceModel.oldCount + touchPadModel.oldCount) {
109 root.unity8Settings.usageMode = "Windowed";
109 root.unity8Settings.usageMode = "Windowed";