From 8b697f7055c20bb9d6b78b8b717c0bb5ee6367fe Mon Sep 17 00:00:00 2001 From: baldurk Date: Wed, 9 Nov 2016 13:26:21 +0100 Subject: [PATCH] Fix issues with FlowLayout not resizing properly in some cases --- qrenderdoc/3rdparty/flowlayout/FlowLayout.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/qrenderdoc/3rdparty/flowlayout/FlowLayout.cpp b/qrenderdoc/3rdparty/flowlayout/FlowLayout.cpp index 36e5a7e66..af33c170d 100644 --- a/qrenderdoc/3rdparty/flowlayout/FlowLayout.cpp +++ b/qrenderdoc/3rdparty/flowlayout/FlowLayout.cpp @@ -122,11 +122,14 @@ void FlowLayout::setGeometry(const QRect &rect) { QLayout::setGeometry(rect); doLayout(rect, false); + update(); } QSize FlowLayout::sizeHint() const { - return minimumSize(); + QSize size = geometry().size(); + size.setHeight(doLayout(geometry().adjusted(0, 0, -10, 0), true)); + return size; } QSize FlowLayout::minimumSize() const