diff options
author | Tor Arne Vestbø <[email protected]> | 2024-12-16 12:37:07 +0100 |
---|---|---|
committer | Tor Arne Vestbø <[email protected]> | 2024-12-18 20:37:38 +0100 |
commit | db4dc0bc460f8ce7377926844596c2dde6ac0418 (patch) | |
tree | b1236cbe8b35a3d03bf075a6fea146ee47fbd7fe /src/quickcontrols/basic/Container.qml | |
parent | 0234ec9ef17bb4ffccde993d194baed6efae3f63 (diff) |
Compute implicitSize based on implicitContentSize in Container and subclasses
Now that Container reflects its explicitly set contentWidth/Height through
implicitContentWidth/Height we can use the same expression for implicit
width/height as regular controls, which hooks us into the safe area
binding loop detection as well.
Pick-to: 6.9
Change-Id: If0a710a5eb4a35c91d02d7170b5e03e457e6bc12
Reviewed-by: Oliver Eftevaag <[email protected]>
Reviewed-by: Richard Moe Gustavsen <[email protected]>
Diffstat (limited to 'src/quickcontrols/basic/Container.qml')
-rw-r--r-- | src/quickcontrols/basic/Container.qml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/quickcontrols/basic/Container.qml b/src/quickcontrols/basic/Container.qml index 28e50279f0..c9002387a8 100644 --- a/src/quickcontrols/basic/Container.qml +++ b/src/quickcontrols/basic/Container.qml @@ -8,7 +8,7 @@ T.Container { id: control implicitWidth: Math.max(implicitBackgroundWidth + leftInset + rightInset, - contentWidth + leftPadding + rightPadding) + implicitContentWidth + leftPadding + rightPadding) implicitHeight: Math.max(implicitBackgroundHeight + topInset + bottomInset, - contentHeight + topPadding + bottomPadding) + implicitContentHeight + topPadding + bottomPadding) } |