From a4d9a394db1a9d79640faeb616a89a0a4bbc314b Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Mon, 5 Aug 2013 13:42:11 +0200 Subject: [PATCH] correctly update layout when the formfactor changes --- src/shell/containments/testpanel/contents/ui/main.qml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/shell/containments/testpanel/contents/ui/main.qml b/src/shell/containments/testpanel/contents/ui/main.qml index 52bd8730c..52f0224b4 100644 --- a/src/shell/containments/testpanel/contents/ui/main.qml +++ b/src/shell/containments/testpanel/contents/ui/main.qml @@ -42,14 +42,18 @@ Item { container.visible = true } onFormFactorChanged: { + print("bbb"+plasmoid.formFactor) if (plasmoid.formFactor == PlasmaCore.Types.Vertical) { for (var container in row.children) { - container.parent = column - print("AAAA"+container) + var item = row.children[0]; + item.parent = column + item.width = column.width } } else { for (var container in column.children) { - container.parent = row + var item = column.children[0]; + item.parent = row + item.height = row.height } } }