| Summary: | Clipboard Paste dialog doesn't show on external monitors | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Michael Feldstein <msfeldstein> | ||||||
| Component: | UI Events | Assignee: | Wenson Hsieh <wenson_hsieh> | ||||||
| Status: | RESOLVED FIXED | ||||||||
| Severity: | Normal | CC: | akeerthi, hi, katherine_cheney, megan_gardner, msfeldstein, thorton, webkit-bug-importer, wenson_hsieh | ||||||
| Priority: | P2 | Keywords: | InRadar | ||||||
| Version: | WebKit Nightly Build | ||||||||
| Hardware: | Unspecified | ||||||||
| OS: | Unspecified | ||||||||
| Attachments: |
|
||||||||
|
Description
Michael Feldstein
2022-02-09 12:02:08 PST
I suspect this is due to the way in which we compute the confinement rect when positioning the DOM paste context menu:
```
- (NSRect)confinementRectForMenu:(NSMenu *)menu onScreen:(NSScreen *)screen
{
auto confinementRect = WebCore::enclosingIntRect(NSRect { NSEvent.mouseLocation, menu.size });
confinementRect.move(0, -confinementRect.height());
return confinementRect;
}
```
...will look into this soon.
Created attachment 453514 [details]
Fixes the bug
Created attachment 453521 [details]
+ Test coverage
Comment on attachment 453521 [details]
+ Test coverage
Thanks for the review!
Committed r290712 (247959@main): <https://commits.webkit.org/247959@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 453521 [details]. |