From 15ae3901a959425b4eac41277232ff06cd0ece4e Mon Sep 17 00:00:00 2001 From: Uwe Rathmann Date: Mon, 16 Sep 2019 12:30:59 +0200 Subject: [PATCH] qskSizeConstraint fixed --- src/controls/QskQuick.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/controls/QskQuick.cpp b/src/controls/QskQuick.cpp index 1ab4f85e..a721f7b9 100644 --- a/src/controls/QskQuick.cpp +++ b/src/controls/QskQuick.cpp @@ -460,6 +460,10 @@ QSizeF qskSizeConstraint( const QQuickItem* item, int constraintType = QskSizePolicy::Unconstrained; + /* + We apply a constraint - even, when the policy is unconstrained. + Do we really want to do this ??? + */ if ( constraint.height() >= 0.0 ) { const auto c = qskBoundedConstraint( item, constraint, policy ); @@ -497,7 +501,7 @@ QSizeF qskSizeConstraint( const QQuickItem* item, size = qskEffectiveSizeHint( item, whichH ); if ( whichV != whichH ) - constraintType = QskSizePolicy::HeightForWidth; + size.setHeight( qskEffectiveSizeHint( item, whichV ).height() ); } } }