#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:
Gaute Lindkvist 2018-04-09 14:30:21 +02:00
parent b488d99f81
commit ab736ab46b

View File

@ -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)