diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-04-28 11:01:48 +1000 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-04-28 11:01:48 +1000 |
| commit | f7b0e4665b223d86045110ff3d4704c1a7760a4d (patch) | |
| tree | 5e71541184bf7b736b99d689e4920dda44eeefd8 /widgets/ClippingBox.qml | |
| parent | feat: anims + box padding (diff) | |
| download | caelestia-shell-f7b0e4665b223d86045110ff3d4704c1a7760a4d.tar.gz caelestia-shell-f7b0e4665b223d86045110ff3d4704c1a7760a4d.tar.bz2 caelestia-shell-f7b0e4665b223d86045110ff3d4704c1a7760a4d.zip | |
format: conform to qml coding conventions
Diffstat (limited to 'widgets/ClippingBox.qml')
| -rw-r--r-- | widgets/ClippingBox.qml | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/widgets/ClippingBox.qml b/widgets/ClippingBox.qml index 1ced873..d0c9b92 100644 --- a/widgets/ClippingBox.qml +++ b/widgets/ClippingBox.qml @@ -18,11 +18,6 @@ ClippingRectangle { 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 = {}; @@ -50,6 +45,11 @@ ClippingRectangle { return pad; } + color: "transparent" + + implicitWidth: childrenRect.width + paddingX + implicitHeight: childrenRect.height + paddingY + onChildrenChanged: { for (const child of children) { child.x = Qt.binding(() => paddingLeft); |