Partial revert of 38e0b150

This commit is contained in:
Gaute Lindkvist
2019-10-30 12:54:23 +01:00
parent 9f927e74f3
commit a925c0f29e
10 changed files with 97 additions and 194 deletions

View File

@@ -631,7 +631,15 @@ void RiuPlotMainWindow::addViewer( QWidget* viewer, const RimMdiWindowGeometry&
}
else
{
subWindowSize = QSize( 400, 400 );
RiuGridPlotWindow* wellLogPlot = dynamic_cast<RiuGridPlotWindow*>( viewer );
if ( wellLogPlot )
{
subWindowSize = QSize( wellLogPlot->preferredWidth(), m_mdiArea->height() );
}
else
{
subWindowSize = QSize( 400, 400 );
}
}
addViewerToMdiArea( m_mdiArea, viewer, subWindowPos, subWindowSize );