on xenial help sign in
make it run on desktop again
commitad93795ea89f029457ed591c50c9baec1da670fd authorMichael Zanetti <michael.zanetti@canonical.com> dateMon 7 Jul 2014, 12:09 (12 years ago) parent9652924
2 files changed+8−3
qml/OrientedShell.qml+3−3 qml/Shell.qml+5
qml/OrientedShell.qml+3−3
@@ -28,9 +28,9 @@ Rectangle {
2828 id: orientedShell
2929
3030 // this is only here to select the width / height of the window if not running fullscreen
31− //property bool tablet: false
32− //width: tablet ? units.gu(160) : applicationArguments.hasGeometry() ? applicationArguments.width() : units.gu(40)
33− //height: tablet ? units.gu(100) : applicationArguments.hasGeometry() ? applicationArguments.height() : units.gu(71)
31+ property bool tablet: false
32+ width: tablet ? units.gu(160) : applicationArguments.hasGeometry() ? applicationArguments.width() : units.gu(40)
33+ height: tablet ? units.gu(100) : applicationArguments.hasGeometry() ? applicationArguments.height() : units.gu(71)
3434
3535 // Hack to avoid animating during startup
3636 property bool ready: false
qml/Shell.qml+5
@@ -64,6 +64,11 @@ FocusScope {
6464 property url background
6565 readonly property real panelHeight: panel.panelHeight
6666
67+ // this is only here to select the width / height of the window if not running fullscreen
68+ property bool tablet: false
69+ width: tablet ? units.gu(160) : applicationArguments.hasGeometry() ? applicationArguments.width() : units.gu(40)
70+ height: tablet ? units.gu(100) : applicationArguments.hasGeometry() ? applicationArguments.height() : units.gu(71)
71+
6772 property bool sideStageEnabled: shell.width >= units.gu(100)
6873
6974 function activateApplication(appId) {