fix prod break defect

This commit is contained in:
Pfeil, Scott Robert 2019-07-19 11:34:22 -04:00
parent 8842ca8113
commit c5f8d27636

View File

@ -309,10 +309,14 @@
}
[MFStyler setDefaultMarginsForView:self size:size horizontal:self.updateViewHorizontalDefaults vertical:self.updateViewVerticalDefaults];
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