summaryrefslogtreecommitdiff
path: root/widgets/Box.qml
diff options
context:
space:
mode:
Diffstat (limited to 'widgets/Box.qml')
-rw-r--r--widgets/Box.qml10
1 files changed, 5 insertions, 5 deletions
diff --git a/widgets/Box.qml b/widgets/Box.qml
index 536469e..d93fb69 100644
--- a/widgets/Box.qml
+++ b/widgets/Box.qml
@@ -17,11 +17,6 @@ Rectangle {
readonly property int paddingX: getRealPadding().x
readonly property int paddingY: getRealPadding().y
- color: "transparent"
-
- implicitWidth: childrenRect.width + paddingX
- implicitHeight: childrenRect.height + paddingY
-
function getRealPadding() {
const pad = {};
@@ -49,6 +44,11 @@ Rectangle {
return pad;
}
+ color: "transparent"
+
+ implicitWidth: childrenRect.width + paddingX
+ implicitHeight: childrenRect.height + paddingY
+
onChildrenChanged: {
for (const child of children) {
child.x = Qt.binding(() => paddingLeft);