🍎 allow x-axis offset to be set for sheets
This commit is contained in:
parent
f441ba2694
commit
359123458d
5 changed files with 35 additions and 13 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue