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]; [MFStyler setDefaultMarginsForView:self size:size horizontal:self.updateViewHorizontalDefaults vertical:self.updateViewVerticalDefaults];
UIEdgeInsets margins = [MVMCoreUIUtility getMarginsForView:self]; UIEdgeInsets margins = [MVMCoreUIUtility getMarginsForView:self];
[self setLeftPinConstant:margins.left]; if (self.updateViewHorizontalDefaults) {
[self setRightPinConstant:margins.right]; [self setLeftPinConstant:margins.left];
[self setTopPinConstant:margins.top]; [self setRightPinConstant:margins.right];
[self setBottomPinConstant:margins.bottom]; }
if (self.updateViewVerticalDefaults) {
[self setTopPinConstant:margins.top];
[self setBottomPinConstant:margins.bottom];
}
} }
#pragma mark - MVMCoreUIMoleculeViewProtocol #pragma mark - MVMCoreUIMoleculeViewProtocol