don't use setFlipped: on the file node's image on 10.6

This commit is contained in:
Mitchell Livingston
2009-10-18 03:02:10 +00:00
parent 23230f519e
commit 045b7d92fb
4 changed files with 15 additions and 14 deletions

View File

@@ -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];
}