Bug 176018
| Summary: | Width is not recalculated after 'overflow' value change (with "Show scroll bars: always") | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Tomasz Sodzawiczny <tsodzawiczny> |
| Component: | Layout and Rendering | Assignee: | Nobody <webkit-unassigned> |
| Status: | NEW | ||
| Severity: | Normal | CC: | ap, bfulgham, simon.fraser, zalan |
| Priority: | P2 | ||
| Version: | WebKit Nightly Build | ||
| Hardware: | Mac | ||
| OS: | macOS 10.12 | ||
Tomasz Sodzawiczny
The bug occurs when system preferences are set to always show scroll (on macOS: System Preferences > General > Show scroll bars: Always).
With this setting, the scrollbar actually takes space from the container (scrollbar width is subtracted from the available width before sizing the children).
When changing the overflow property from 'auto' to 'hidden' the scrollbar disappears (as expected) but the children elements width is not recalculated to fill the newly freed space.
See demo at: https://jsfiddle.net/qmury15r/
(The demo works flawlessly on FF/Chrome).
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |