PL-7501 Update FieldGroup captions column width after fields visibility has changed

This commit is contained in:
Yuriy Artamonov 2016-07-18 23:42:19 +04:00
parent f4a8a10d53
commit 0176690058

View File

@ -102,6 +102,13 @@ public class CubaFieldGroupLayoutConnector extends CubaGridLayoutConnector {
getWidget().useInlineCaption = getState().useInlineCaption;
super.onConnectorHierarchyChange(event);
if (getState().useInlineCaption) {
needUpdateCaptionSizes = true;
// always relayout after caption changes
getLayoutManager().setNeedsLayout(CubaFieldGroupLayoutConnector.this);
}
}
protected void updateCaptionSizes(int index, VGridLayout.Cell[] column) {