mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#2693. Fix overlap of category legend with other legends.
* CategoryLegend should not use the matchedWidth. They have their own columns. * Change shifts to using minimumWidth instead.
This commit is contained in:
parent
b488d99f81
commit
ab736ab46b
@ -131,7 +131,7 @@ void CategoryLegend::renderGeneric(OpenGLContext* oglContext,
|
||||
|
||||
this->computeLayoutAndExtents(position, size);
|
||||
|
||||
Vec2f backgroundSize(CVF_MIN((float) this->matchedWidth(), (float)size.x()), (float)size.y());
|
||||
Vec2f backgroundSize(CVF_MIN((float)this->minimumWidth(), (float)size.x()), (float)size.y());
|
||||
|
||||
// Do the actual rendering
|
||||
if (software)
|
||||
|
Loading…
Reference in New Issue
Block a user