revert for legacy

This commit is contained in:
Pfeil, Scott Robert 2019-10-24 09:31:01 -04:00
parent ef2df903e8
commit 0ff661f3c4

View File

@ -314,10 +314,14 @@
[self.molecule updateView:size];
[MFStyler setMarginsForView:self size:size defaultHorizontal:self.updateViewHorizontalDefaults top:(self.updateViewVerticalDefaults ? self.topMarginPadding : 0) bottom:(self.updateViewVerticalDefaults ? self.bottomMarginPadding : 0)];
UIEdgeInsets margins = [MVMCoreUIUtility getMarginsForView:self];
[self setLeftPinConstant:margins.left];
[self setRightPinConstant:margins.right];
[self setTopPinConstant:margins.top];
[self setBottomPinConstant:margins.bottom];
if (self.updateViewHorizontalDefaults) {
[self setLeftPinConstant:margins.left];
[self setRightPinConstant:margins.right];
}
if (self.updateViewVerticalDefaults) {
[self setTopPinConstant:margins.top];
[self setBottomPinConstant:margins.bottom];
}
}
#pragma mark - MVMCoreUIMoleculeViewProtocol