🍎 allow x-axis offset to be set for sheets

This commit is contained in:
leethomas 2016-05-18 23:39:16 -07:00
parent f441ba2694
commit 359123458d
5 changed files with 35 additions and 13 deletions

View file

@ -257,7 +257,9 @@ bool ScopedDisableResize::disable_resize_ = false;
- (NSRect)window:(NSWindow*)window
willPositionSheet:(NSWindow*)sheet usingRect:(NSRect)rect {
NSView* view = window.contentView;
rect.origin.y = view.frame.size.height - shell_->GetSheetOffset();
rect.origin.x = shell_->GetSheetOffsetX();
rect.origin.y = view.frame.size.height - shell_->GetSheetOffsetY();
return rect;
}