Create local variable to typecast view
This commit is contained in:
parent
c87c49f4c8
commit
65c37fe64b
1 changed files with 2 additions and 1 deletions
|
@ -244,7 +244,8 @@ bool ScopedDisableResize::disable_resize_ = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
- (NSRect)window:(NSWindow *)window willPositionSheet:(NSWindow *)sheet usingRect:(NSRect)rect {
|
- (NSRect)window:(NSWindow *)window willPositionSheet:(NSWindow *)sheet usingRect:(NSRect)rect {
|
||||||
rect.origin.y = window.contentView.frame.size.height - shell_->GetSheetOffset();
|
NSView * view = window.contentView;
|
||||||
|
rect.origin.y = view.frame.size.height - shell_->GetSheetOffset();
|
||||||
return rect;
|
return rect;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue