[Webkit-unassigned] [Bug 97706] New: Scroll offset of flex items lost during relayout
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Sep 26 11:12:18 PDT 2012
https://bugs.webkit.org/show_bug.cgi?id=97706
Summary: Scroll offset of flex items lost during relayout
Product: WebKit
Version: 528+ (Nightly build)
Platform: Unspecified
URL: http://jsfiddle.net/XrU6J/4/
OS/Version: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: Layout and Rendering
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: tony at chromium.org
CC: ojan at chromium.org
Blocks: 62048
See the test case in the URL. It does the following:
1) A flexbox with a flexitem that has a scrollbar.
2) Set the scroll offset of the flexitem.
3) Change the flexbox (e.g., resize the window or insert a new flex item).
4) The scroll offset is lost.
This is happening because flexbox does a 2 pass layout of the flex children. We layout the child without scrollbars (to get the size used for flexing), then we layout the child at it's final size. During the first layout, we remove the scrollbars, then during the second layout, we recreate the scrollbars (but without the scroll offset).
There's some code in the old flexbox to handle this, we just need to add it to the new flexbox.
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list