mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-13 08:52:14 -05:00
(#616) Removed the legend scrollbars completely by keeping the legend with at required size.
This commit is contained in:
1 parent
fa83513ac6
commit
76a90b04c8
1 file changed
+2
-3
@@ -291,8 +291,8 @@ void RiuWellLogPlot::placeChildWidgets(int height, int width)
|
||||
realTrackWidth += 1;
|
||||
--trackWidthExtra;
|
||||
}
|
||||
|
||||
m_legends[tIdx]->setGeometry(trackX, 0, realTrackWidth, maxLegendHeight);
|
||||
int realLegendWidth = std::max(realTrackWidth, m_legends[tIdx]->sizeHint().width());
|
||||
m_legends[tIdx]->setGeometry(trackX, 0, realLegendWidth, maxLegendHeight);
|
||||
m_trackPlots[tIdx]->setGeometry(trackX, maxLegendHeight, realTrackWidth, trackHeight);
|
||||
|
||||
trackX += realTrackWidth;
|
||||
@@ -301,7 +301,6 @@ void RiuWellLogPlot::placeChildWidgets(int height, int width)
|
||||
}
|
||||
|
||||
if (m_scrollBar->isVisible()) m_scrollBar->setGeometry(trackX, maxLegendHeight, scrollBarWidth, trackHeight);
|
||||
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in new issue
Block a user