on xenial help sign in
Fix mock virtual keyboard
commitb6130e07745468617e256b82f78ba38818dd13de authorDaniel d'Andrada <daniel.dandrada@canonical.com> dateTue 19 Aug 2014, 10:26 (12 years ago) parent547a4a1
1 file changed+7−3
tests/mocks/Unity/Application/VirtualKeyboard.qml+7−3
tests/mocks/Unity/Application/VirtualKeyboard.qml+7−3
@@ -17,14 +17,18 @@
1717import QtQuick 2.0
1818
1919Item {
20− width: units.gu(40)
21− height: units.gu(70)
20+ implicitWidth: units.gu(40)
21+ implicitHeight: units.gu(70)
22+
23+ anchors.fill: parent
2224
2325 property alias screenshotSource: screenshotImage.source
2426
27+ property bool landscape: width > height
28+
2529 Image {
2630 id: screenshotImage
27− height: width * 0.6
31+ height: landscape ? parent.height * 0.4 : width * 0.6
2832 anchors.bottom: parent.bottom
2933 anchors.left: parent.left
3034 anchors.right: parent.right