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