diff options
author | Tor Arne Vestbø <[email protected]> | 2024-12-16 11:54:40 +0100 |
---|---|---|
committer | Tor Arne Vestbø <[email protected]> | 2024-12-18 20:37:27 +0100 |
commit | ae7a573fe9d74f8d8355ca95f66ba160fa176270 (patch) | |
tree | 8957c88a3dea4406fb1f06b74adb6c34787436ae /src/quickcontrols/basic/Frame.qml | |
parent | 7c968ac1512b8eede38f213708f314701547c784 (diff) |
Compute implicitSize based on implicitContentSize in Pane and subclasses
Now that Pane 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: Ie31b740a1e405341fc5f0ed9673b213292e4afd9
Reviewed-by: Oliver Eftevaag <[email protected]>
Diffstat (limited to 'src/quickcontrols/basic/Frame.qml')
-rw-r--r-- | src/quickcontrols/basic/Frame.qml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/quickcontrols/basic/Frame.qml b/src/quickcontrols/basic/Frame.qml index d1ecc4b9df..b299a5afee 100644 --- a/src/quickcontrols/basic/Frame.qml +++ b/src/quickcontrols/basic/Frame.qml @@ -9,9 +9,9 @@ T.Frame { 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) padding: 12 |