mirror of
https://github.com/transmission/transmission
synced 2025-01-31 03:12:44 +00:00
don't do layout in code until localizations are updated in 2.8
This commit is contained in:
parent
02879f7d5a
commit
b2b1aeb282
4 changed files with 11 additions and 4 deletions
|
@ -95,6 +95,8 @@
|
|||
[fLocationImageView setImage: nil];
|
||||
}
|
||||
|
||||
#warning enable after 2.7
|
||||
/*
|
||||
#warning when 10.7-only, switch to auto layout
|
||||
[fMagnetLinkLabel sizeToFit];
|
||||
|
||||
|
@ -152,6 +154,7 @@
|
|||
[fCancelButton setFrame: cancelButtonFrame];
|
||||
|
||||
[fStartCheck sizeToFit];
|
||||
*/
|
||||
}
|
||||
|
||||
- (void) windowDidLoad
|
||||
|
|
|
@ -58,7 +58,7 @@
|
|||
[[NSNotificationCenter defaultCenter] addObserver: self selector: @selector(updatePiecesView) name: @"UpdatePiecesView" object: nil];
|
||||
|
||||
#warning remove when 10.7-only with auto layout
|
||||
[fTransferSectionLabel sizeToFit];
|
||||
/*[fTransferSectionLabel sizeToFit];
|
||||
[fDatesSectionLabel sizeToFit];
|
||||
[fTimeSectionLabel sizeToFit];
|
||||
|
||||
|
@ -95,7 +95,7 @@
|
|||
frame.origin.x += widthIncrease;
|
||||
frame.size.width -= widthIncrease;
|
||||
[field setFrame: frame];
|
||||
}
|
||||
}*/
|
||||
}
|
||||
|
||||
- (void) dealloc
|
||||
|
|
|
@ -51,6 +51,8 @@
|
|||
[super dealloc];
|
||||
}
|
||||
|
||||
#warning enable after 2.7
|
||||
/*
|
||||
- (void) awakeFromNib
|
||||
{
|
||||
#warning remove when 10.7-only with auto layout
|
||||
|
@ -91,7 +93,7 @@
|
|||
frame.size.width -= widthIncrease;
|
||||
[field setFrame: frame];
|
||||
}
|
||||
}
|
||||
}*/
|
||||
|
||||
- (void) setInfoForTorrents: (NSArray *) torrents
|
||||
{
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue