don't do layout in code until localizations are updated in 2.8

This commit is contained in:
Mitchell Livingston
2012-10-19 03:52:59 +00:00
parent 02879f7d5a
commit b2b1aeb282
4 changed files with 11 additions and 4 deletions
+3 -1
View File
@@ -63,6 +63,8 @@
[[NSNotificationCenter defaultCenter] addObserver: self selector: @selector(setGlobalLabels) name: @"UpdateGlobalOptions" object: nil];
[[NSNotificationCenter defaultCenter] addObserver: self selector: @selector(updateOptionsNotification:) name: @"UpdateOptionsNotification" object: nil];
#warning enable after 2.7
/*
#warning remove when 10.7-only with auto layout
const CGFloat padding = 6.0; //this shows as 8 in IB
[fPrioritySectionLabel sizeToFit];
@@ -128,7 +130,7 @@
[fPeersConnectLabel sizeToFit];
NSRect peersConnectLabelFrame = [fPeersConnectLabel frame];
peersConnectLabelFrame.origin.x = NSMaxX(peersConnectFrame) + padding;
[fPeersConnectLabel setFrame: peersConnectLabelFrame];
[fPeersConnectLabel setFrame: peersConnectLabelFrame];*/
}
- (void) dealloc