mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-04 17:10:47 +00:00
Fix issues with FlowLayout not resizing properly in some cases
This commit is contained in:
+4
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user