mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#2102 Statistics dialog. Adjust text edit height to its contents
This commit is contained in:
@@ -592,11 +592,14 @@ void Rim3dOverlayInfoConfig::showStatisticsInfoDialog()
|
||||
{
|
||||
if (m_viewDef)
|
||||
{
|
||||
// Show dialog before setting data due to text edit auto height setting
|
||||
m_gridStatisticsDialog->resize(600, 800);
|
||||
m_gridStatisticsDialog->show();
|
||||
|
||||
m_gridStatisticsDialog->setLabel("Grid statistics");
|
||||
m_gridStatisticsDialog->setInfoText(m_viewDef);
|
||||
m_gridStatisticsDialog->setHistogramData(m_viewDef);
|
||||
m_gridStatisticsDialog->resize(600, 800);
|
||||
m_gridStatisticsDialog->show();
|
||||
|
||||
m_gridStatisticsDialog->raise();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user