mirror of
https://github.com/transmission/transmission.git
synced 2025-12-24 12:28:52 +00:00
don't use setFlipped: on the file node's image on 10.6
This commit is contained in:
@@ -297,13 +297,11 @@
|
||||
|
||||
- (void) ruleEditorRowsDidChange: (NSNotification *) notification
|
||||
{
|
||||
CGFloat rowHeight = [fRuleEditor rowHeight];
|
||||
NSInteger numberOfRows = [fRuleEditor numberOfRows];
|
||||
CGFloat ruleEditorHeight = numberOfRows * rowHeight;
|
||||
CGFloat heightDifference = ruleEditorHeight - [fRuleEditor frame].size.height;
|
||||
NSRect windowFrame = [fRuleEditor window].frame;
|
||||
const CGFloat heightDifference = [fRuleEditor numberOfRows] * [fRuleEditor rowHeight] - [fRuleEditor frame].size.height;
|
||||
NSRect windowFrame = [fRuleEditor window].frame;
|
||||
windowFrame.size.height += heightDifference;
|
||||
windowFrame.origin.y -= heightDifference;
|
||||
windowFrame.origin.y -= heightDifference;
|
||||
|
||||
[fRuleEditor.window setFrame: windowFrame display: YES animate: YES];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user