CSS Grid layout auto-fit columns not recalculated on window resize
Reported by
amelia.b...@gmail.com,
Aug 31 2016
|
|||
Issue descriptionUserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36 Example URL: http://labs.jensimmons.com/examples/spices-1.html Steps to reproduce the problem: 1. Turn on the Experimental Web Platforms flag to enable CSS Grid. 2. View a grid layout (like the linked example by Jen Simmons) that uses `auto-fit` to determine the number of columns. 3. Resize the browser window (and therefore resize the container with the grid layout). What is the expected behavior? When the container with the grid layout changes size significantly, the auto-fit number of columns should be recalculated. This works in the Firefox implementation. What went wrong? The grid maintains the same number of columns, regardless of the container size. This means content overflows when scaling down, and gets stretched too large when scaling up. If you refresh the page after changing the window size, the layout is correctly re-calculated for the new size, so that's not a problem. Does it occur on multiple sites: N/A Is it a problem with a plugin? No Did this work before? N/A Does this work in other browsers? Yes Chrome version: 52.0.2743.116 Channel: stable OS Version: 10.0 Flash Version: Shockwave Flash 22.0 r0
,
Sep 1 2016
,
Sep 1 2016
Confirmed fixed in Chrome 55.0.2846.0 / Canary. Sorry I didn't check that before posting, feel free to close as already fixed!
,
Sep 2 2016
Thanks for confirming, closing the issue as per above comment. |
|||
►
Sign in to add a comment |
|||
Comment 1 by ranjitkan@chromium.org
, Sep 1 2016Labels: Needs-Feedback