From 5f751ede091ee3cca31ca1dbc8bca14f954108ee Mon Sep 17 00:00:00 2001 From: Uwe Rathmann Date: Mon, 16 Sep 2019 12:30:00 +0200 Subject: [PATCH] respecting the layout hints when autolayouting children --- src/controls/QskWindow.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/controls/QskWindow.cpp b/src/controls/QskWindow.cpp index ffae444f..afabcef2 100644 --- a/src/controls/QskWindow.cpp +++ b/src/controls/QskWindow.cpp @@ -456,7 +456,10 @@ void QskWindow::layoutItems() for ( auto child : children ) { if ( !qskIsTransparentForPositioner( child ) ) - qskSetItemGeometry( child, rect ); + { + const auto r = qskConstrainedItemRect( child, rect ); + qskSetItemGeometry( child, r ); + } } }