on xenial help sign in
hint the launcher in order to signal a successful size change
64feb38Michael Zanetti
qml/Launcher/Launcher.qml+4
@@ -102,6 +102,10 @@ FocusScope {
102 }
102 }
103 }
103 }
104
104
105+ onPanelWidthChanged: {
106+ hint();
107+ }
108+
105 function hide() {
109 function hide() {
106 switchToNextState("")
110 switchToNextState("")
107 }
111 }
tests/qmltests/Launcher/tst_Launcher.qml+8
@@ -1478,5 +1478,13 @@ Rectangle {
1478
1478
1479 launcher.available = true;
1479 launcher.available = true;
1480 }
1480 }
1481+
1482+ function test_hintOnSizeChange() {
1483+ var oldSize = launcher.panelWidth;
1484+ launcher.maxPanelX = -launcher.panelWidth;
1485+ launcher.panelWidth = oldSize + units.gu(2);
1486+ tryCompare(launcher, "maxPanelX", 0);
1487+ launcher.panelWidth = oldSize;
1488+ }
1481 }
1489 }
1482}
1490}