WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
138943
Preview popover needs minimum and maximum sizes
https://bugs.webkit.org/show_bug.cgi?id=138943
Summary
Preview popover needs minimum and maximum sizes
Beth Dakin
Reported
2014-11-20 16:47:16 PST
Preview popover needs minimum and maximum sizes
rdar://problem/18904651
Attachments
Patch
(9.72 KB, patch)
2014-11-20 17:45 PST
,
Beth Dakin
thorton
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Beth Dakin
Comment 1
2014-11-20 17:45:35 PST
Created
attachment 242009
[details]
Patch
WebKit Commit Bot
Comment 2
2014-11-20 17:47:01 PST
Attachment 242009
[details]
did not pass style-queue: ERROR: Source/WebKit2/UIProcess/mac/WKActionMenuController.mm:398: Missing space after , [whitespace/comma] [3] ERROR: Source/WebKit2/UIProcess/mac/WKActionMenuController.mm:405: Missing space after , [whitespace/comma] [3] Total errors found: 2 in 3 files If any of these errors are false positives, please file a bug against check-webkit-style.
Tim Horton
Comment 3
2014-11-20 17:51:05 PST
Comment on
attachment 242009
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=242009&action=review
> Source/WebKit2/ChangeLog:12 > + _hitTestResult, so we should computer a new origin rect based on the original
computer!!
> Source/WebKit2/UIProcess/mac/WKActionMenuController.mm:398 > + if (targetSizeFitsInAvailableSpace(targetSize, maxSpaceAvailableOnYEdge) && targetSizeFitsInAvailableSpace(targetSize,largestPopoverSize))
you're missing some spaces after your commas
Beth Dakin
Comment 4
2014-11-20 17:53:04 PST
Thank you!
http://trac.webkit.org/changeset/176429
Conrad Shultz
Comment 5
2014-11-20 17:59:50 PST
Comment on
attachment 242009
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=242009&action=review
> Source/WebKit2/UIProcess/mac/WKActionMenuController.mm:363 > + NSSize screenSize = [[NSScreen mainScreen] frame].size;
I'm not sure this will do what you want in all multi-screen cases. Is it guaranteed that keyboard focus is on the same screen as the presenting WKView?
Beth Dakin
Comment 6
2014-11-20 18:10:58 PST
http://trac.webkit.org/changeset/176430
Good call, Conrad!
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug