mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#3722 Scale legend. Descrease size
This commit is contained in:
parent
5e769b337f
commit
67ba01f835
@ -973,9 +973,9 @@ void RiuViewer::showScaleLegend(bool show)
|
||||
if (show)
|
||||
{
|
||||
if(m_scaleLegend->orientation() == caf::OverlayScaleLegend::HORIZONTAL)
|
||||
m_scaleLegend->setRenderSize({400, 50});
|
||||
m_scaleLegend->setRenderSize({280, 45});
|
||||
else
|
||||
m_scaleLegend->setRenderSize({70, 400});
|
||||
m_scaleLegend->setRenderSize({50, 280});
|
||||
|
||||
m_mainRendering->addOverlayItem(m_scaleLegend.p());
|
||||
}
|
||||
|
@ -207,7 +207,7 @@ void OverlayScaleLegend::setupHorizontalTextDrawer(TextDrawer* textDrawer, const
|
||||
size_t it;
|
||||
for (it = 0; it < numTicks; it++)
|
||||
{
|
||||
if(!layout->ticks[it].isMajor) continue;
|
||||
if(numTicks > 4 && !layout->ticks[it].isMajor) continue;
|
||||
|
||||
double tickValue = layout->ticks[it].domainValue;
|
||||
String valueString;
|
||||
@ -277,7 +277,7 @@ void OverlayScaleLegend::setupVerticalTextDrawer(TextDrawer* textDrawer, const L
|
||||
size_t it;
|
||||
for (it = 0; it < numTicks; it++)
|
||||
{
|
||||
if (!layout->ticks[it].isMajor) continue;
|
||||
if (numTicks > 4 && !layout->ticks[it].isMajor) continue;
|
||||
|
||||
float textY = static_cast<float>(layout->axisStartPt.y() + layout->ticks[it].displayValue);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user