RESOLVED FIXED138472
Preview views often misplaced inside popover
https://bugs.webkit.org/show_bug.cgi?id=138472
Summary Preview views often misplaced inside popover
Beth Dakin
Reported 2014-11-06 12:50:45 PST
Preview views often misplaced inside popover
Attachments
Patch (9.21 KB, patch)
2014-11-06 12:54 PST, Beth Dakin
thorton: review+
Beth Dakin
Comment 1 2014-11-06 12:54:03 PST
Beth Dakin
Comment 2 2014-11-06 12:57:09 PST
Tim Horton
Comment 3 2014-11-06 12:57:55 PST
Comment on attachment 241126 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=241126&action=review > Source/WebKit2/UIProcess/mac/WKActionMenuController.mm:366 > + return maxHortizontalTargetSizePreservingAspectRatio; horizontal is spelled wrong here.
Anders Carlsson
Comment 4 2014-11-06 12:59:06 PST
> Source/WebKit2/UIProcess/mac/WKActionMenuController.mm:328 > +- (BOOL)_targetSize:(NSSize)targetSize fitsInAvailableSpace:(NSSize)availableSpace > +{ > + return targetSize.width <= availableSpace.width && targetSize.height <= availableSpace.height; > +} I think this should just be a static C function bool targetSizeFitsInAvailableSpace(NSSize targetSize, NSSize availableSpace) { } > Source/WebKit2/UIProcess/mac/WKActionMenuController.mm:359 > + FloatRect maxHortizontalTargetSizePreservingAspectRatioRect = largestRectWithAspectRatioInsideRect(aspectRatio, FloatRect(0, 0, maxSpaceAvailableOnXEdge.width, maxSpaceAvailableOnXEdge.height)); Hortizontal! (Tim Hortizontal)
Beth Dakin
Comment 5 2014-11-06 13:03:55 PST
Note You need to log in before you can comment on or make changes to this bug.