#3589 Fix regression in column width for table in well path creation.

This commit is contained in:
Gaute Lindkvist
2018-10-31 09:31:53 +01:00
parent 683ac7ea1e
commit 0d3b205dac
4 changed files with 30 additions and 17 deletions

View File

@@ -604,10 +604,15 @@ void RimWellPathGeometryDef::defineEditorAttribute(const caf::PdmFieldHandle* fi
if (field == &m_wellTargets)
{
auto tvAttribute = dynamic_cast<caf::PdmUiTableViewEditorAttribute*>(attribute);
if (tvAttribute && m_pickPointsEnabled)
if (tvAttribute)
{
tvAttribute->baseColor.setRgb(255, 220, 255);
tvAttribute->autoResizeColumnsToFitContent = true;
tvAttribute->resizePolicy = caf::PdmUiTableViewEditorAttribute::RESIZE_TO_FIT_CONTENT;
if (m_pickPointsEnabled)
{
tvAttribute->baseColor.setRgb(255, 220, 255);
tvAttribute->alwaysEnforceResizePolicy = true;
}
}
}
}