Create local variable to typecast view

This commit is contained in:
Ben Gotow 2016-04-16 10:57:39 -04:00
parent c87c49f4c8
commit 65c37fe64b

View file

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