aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJ-P Nurmi <jpnurmi@theqtcompany.com>2015-11-06 20:26:13 +0100
committerJ-P Nurmi <jpnurmi@theqtcompany.com>2015-11-12 06:57:00 +0000
commit797b177bd2201400e2aa99a7bb645a373c0b1214 (patch)
tree52144ba247e8b9f75d676e2877666d8e3f23fe7c /tests
parent92d53a3bf425f89877f917e108f545a4623b726d (diff)
testbench: fix scrolling
- specify only width for the Flow. let it wrap & freely grow in height - use Flickable content margins instead of anchor margins. Flickable reserves these margins between itself and the internal content item - specify content height for the Flickable so it knows how much content is available for scrolling Change-Id: Iaa52f6ca9c48e6a213ee8e00de04445f806db350 Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/manual/testbench/main.qml9
1 files changed, 6 insertions, 3 deletions
diff --git a/tests/manual/testbench/main.qml b/tests/manual/testbench/main.qml
index 83fadc16..4158fbf8 100644
--- a/tests/manual/testbench/main.qml
+++ b/tests/manual/testbench/main.qml
@@ -104,12 +104,15 @@ ApplicationWindow {
Flickable {
anchors.fill: parent
- flickableDirection: Flickable.VerticalFlick
+ topMargin: 30
+ leftMargin: 30
+ rightMargin: 30
+ bottomMargin: 30
+ contentHeight: flow.height
Flow {
id: flow
- anchors.fill: parent
- anchors.margins: 30
+ width: parent.width
spacing: 30
RowLayout {