on xenial help sign in
Fix mock virtual keyboard
b6130e0Daniel d'Andrada
tests/mocks/Unity/Application/VirtualKeyboard.qml+7−3
@@ -17,14 +17,18 @@
17import QtQuick 2.0
17import QtQuick 2.0
18
18
19Item {
19Item {
20− width: units.gu(40)
20+ implicitWidth: units.gu(40)
21− height: units.gu(70)
21+ implicitHeight: units.gu(70)
22+
23+ anchors.fill: parent
22
24
23 property alias screenshotSource: screenshotImage.source
25 property alias screenshotSource: screenshotImage.source
24
26
27+ property bool landscape: width > height
28+
25 Image {
29 Image {
26 id: screenshotImage
30 id: screenshotImage
27− height: width * 0.6
31+ height: landscape ? parent.height * 0.4 : width * 0.6
28 anchors.bottom: parent.bottom
32 anchors.bottom: parent.bottom
29 anchors.left: parent.left
33 anchors.left: parent.left
30 anchors.right: parent.right
34 anchors.right: parent.right