forked from qt-creator/qt-creator
Fix that opening advanced search could make output pane smaller
Height is set to 0 when the pane is hidden, so we have to check the nonMaximizedSize instead (and only if the pane is not maximized already. Task-number: QTCREATORBUG-15986 Change-Id: Ic2a08c300a7e311b59c4597d8043041f68a4c1ff Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
@@ -177,7 +177,7 @@ void OutputPanePlaceHolder::ensureSizeHintAsMinimum()
|
||||
Internal::OutputPaneManager *om = Internal::OutputPaneManager::instance();
|
||||
int minimum = (d->m_splitter->orientation() == Qt::Vertical
|
||||
? om->sizeHint().height() : om->sizeHint().width());
|
||||
if (height() < minimum)
|
||||
if (nonMaximizedSize() < minimum && !d->m_isMaximized)
|
||||
setHeight(minimum);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user