summaryrefslogtreecommitdiff
path: root/widgets/Box.qml
diff options
context:
space:
mode:
Diffstat (limited to 'widgets/Box.qml')
-rw-r--r--widgets/Box.qml12
1 files changed, 10 insertions, 2 deletions
diff --git a/widgets/Box.qml b/widgets/Box.qml
index c1ee51d..9c786c7 100644
--- a/widgets/Box.qml
+++ b/widgets/Box.qml
@@ -5,10 +5,18 @@ Grid {
property bool vertical: parent.vertical ?? false // Propagate from parent
flow: vertical ? Grid.TopToBottom : Grid.LeftToRight
- rows: vertical ? -1 : 1
- columns: vertical ? 1 : -1
spacing: Appearance.spacing.small
+ onVerticalChanged: {
+ if (vertical) {
+ rows = -1;
+ columns = 1;
+ } else {
+ columns = -1;
+ rows = 1;
+ }
+ }
+
add: Transition {
NumberAnimation {
properties: "scale"