mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-10 23:46:00 -06:00
MultiPlot: Fix small empty legend when toggling legend position.
This commit is contained in:
parent
dfbdfaa726
commit
52cee02ffe
@ -605,6 +605,7 @@ void RiuMultiPlotPage::performUpdate( RiaDefines::MultiPlotPageUpdateType whatTo
|
|||||||
reinsertPlotWidgets();
|
reinsertPlotWidgets();
|
||||||
alignCanvasTops();
|
alignCanvasTops();
|
||||||
if ( m_autoAlignAxes ) alignAxes();
|
if ( m_autoAlignAxes ) alignAxes();
|
||||||
|
updatePlotLayouts();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -643,6 +644,16 @@ void RiuMultiPlotPage::refreshLegends()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
///
|
||||||
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
void RiuMultiPlotPage::updatePlotLayouts()
|
||||||
|
{
|
||||||
|
QList<QPointer<RiuPlotWidget>> plotWidgets = this->visiblePlotWidgets();
|
||||||
|
for ( auto p : plotWidgets )
|
||||||
|
p->updateLayout();
|
||||||
|
}
|
||||||
|
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
///
|
///
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
|
@ -123,6 +123,7 @@ protected:
|
|||||||
|
|
||||||
virtual void reinsertPlotWidgets();
|
virtual void reinsertPlotWidgets();
|
||||||
virtual void refreshLegends();
|
virtual void refreshLegends();
|
||||||
|
void updatePlotLayouts();
|
||||||
|
|
||||||
void addLegendWidget( RiuPlotWidget* plotWidget,
|
void addLegendWidget( RiuPlotWidget* plotWidget,
|
||||||
RiuQwtPlotLegend* legend,
|
RiuQwtPlotLegend* legend,
|
||||||
|
Loading…
Reference in New Issue
Block a user