[Webkit-unassigned] [Bug 90670] Vertically center non-anchored <dialog> elements
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Aug 2 04:21:29 PDT 2012
https://bugs.webkit.org/show_bug.cgi?id=90670
--- Comment #12 from Matt Falkenhagen <falken at chromium.org> 2012-08-02 04:21:28 PST ---
I notice now the spec specifically says when to "set up the default static position" in the steps for show() and showModal(). So it seems the element should not be repositioned on scroll or resize, after all. The default static position can change only when show() or showModal() is invoked.
As suggested in comment #7, I looked into setting the static position before proceeding with RenderBlock::layout, but we need to know the height to center the dialog, and that is computed during layout (in RenderBox::computeLogicalHeight). It looks possible to get it to center by hooking into the computeLogicalHeight code path. I should have a preliminary patch ready soon.
--
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