menu fixing

This commit is contained in:
Pfeil, Scott Robert 2019-05-17 10:37:32 -04:00
parent 91890011d8
commit c59be1b9a8

View File

@ -702,6 +702,7 @@ CGFloat const PanelAnimationDuration = 0.2;
[self addPanel:panel];
self.leftView = panel.view;
self.leftPanel = panel;
self.leftView.translatesAutoresizingMaskIntoConstraints = NO;
NSLayoutConstraint *leftPanelWidth = [NSLayoutConstraint constraintWithItem:self.leftView attribute:NSLayoutAttributeWidth relatedBy:NSLayoutRelationEqual toItem:nil attribute:NSLayoutAttributeNotAnAttribute multiplier:1.0 constant:270];
leftPanelWidth.active = YES;
self.leftPanelWidth = leftPanelWidth;
@ -736,6 +737,7 @@ CGFloat const PanelAnimationDuration = 0.2;
[self addPanel:panel];
self.rightView = panel.view;
self.rightPanel = panel;
self.rightView.translatesAutoresizingMaskIntoConstraints = NO;
NSLayoutConstraint *rightPanelWidth = [NSLayoutConstraint constraintWithItem:self.rightView attribute:NSLayoutAttributeWidth relatedBy:NSLayoutRelationEqual toItem:nil attribute:NSLayoutAttributeNotAnAttribute multiplier:1.0 constant:270];
rightPanelWidth.active = YES;
self.rightPanelWidth = rightPanelWidth;