mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-13 21:42:32 +00:00
fixed layout warning in 10.12
This commit is contained in:
@@ -80,7 +80,6 @@
|
||||
[contentView.subviews.firstObject removeFromSuperview];
|
||||
}
|
||||
[contentView addSubview:tabView];
|
||||
[contentView layout];
|
||||
[contentView addConstraints:[NSLayoutConstraint constraintsWithVisualFormat:@"H:|-0-[tabView]-0-|"
|
||||
options:0
|
||||
metrics:nil
|
||||
@@ -90,6 +89,7 @@
|
||||
metrics:nil
|
||||
views:NSDictionaryOfVariableBindings(tabView)]];
|
||||
|
||||
[contentView layout];
|
||||
[contentView layoutSubtreeIfNeeded];
|
||||
if([tab respondsToSelector:@selector(didShowTab)]) {
|
||||
[tab didShowTab];
|
||||
|
||||
Reference in New Issue
Block a user