Don't stretch previews with extreme aspect ratio
This fixes the attached bug. When the preview image served to the hover card system by the thumbnail system is extremely narrow or wide (which can happen with extreme web viewport shapes) the image will be centered rather than stretched in the hover card. This can really only be reproduced by opening developer tools and widening it until it fills most of the browser window. Otherwise the preview capture system handles scaling and cropping appropriately. Bug: 1146389 Change-Id: I1e3943ffa02c1c72bc5105ebbeb757fac6c10323 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2528910 Commit-Queue: Dana Fried <dfried@chromium.org> Reviewed-by:Caroline Rising <corising@chromium.org> Cr-Commit-Position: refs/heads/master@{#826046}
Showing
Please register or sign in to comment