mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
Create local variable to typecast view
This commit is contained in:
@@ -244,7 +244,8 @@ bool ScopedDisableResize::disable_resize_ = false;
|
||||
}
|
||||
|
||||
- (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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user