mediawiki-extensions-Visual.../modules/ve/ce
Catrope ce1f4dac55 Work around crazy list rendering bug in Firefox
After indenting or outdenting a list item in a numbered list, the
numbering wasn't updated. So if you had:
1. One
2. Two
3. Three

and you indented "Two", you'd get:
1. One
     1. Two
3. Three

Adding or removing items in the list using the keyboard, or even
inspecting the list in Firebug (!), would trigger a renumbering and fix
the list to display "2. Three". But then the same issue would occur in
in reverse when outdenting "Two" (either using undo or using the
outdent button):
1. One
2. Two
2. Three

The workaround is to force a reflow by requesting the height (thank you
Timo). Implemented this in an override of onSplice() in ve.ce.ListNode, so
the list is detached and reattached every time children are spliced into
or out of it.

I haven't managed to come up with a minimal test case for this, not even
by putting a list in a contentEditable div and doing the same DOM
operations that ve.ce does from a setTimeout callback.

Change-Id: I93b2a309034c411a7b4e4b6c6bd4ef9d473999eb
2012-07-20 14:07:53 -07:00
..
nodes Work around crazy list rendering bug in Firefox 2012-07-20 14:07:53 -07:00
styles Removed some whitespace 2012-07-19 14:25:16 -07:00
ve.ce.BranchNode.js Removed some whitespace 2012-07-19 14:25:16 -07:00
ve.ce.Document.js Removed some whitespace 2012-07-19 14:25:16 -07:00
ve.ce.js Removed some whitespace 2012-07-19 14:25:16 -07:00
ve.ce.LeafNode.js Removed some whitespace 2012-07-19 14:25:16 -07:00
ve.ce.Node.js Removed some whitespace 2012-07-19 14:25:16 -07:00
ve.ce.NodeFactory.js Removed some whitespace 2012-07-19 14:25:16 -07:00
ve.ce.Surface.js Removed some whitespace 2012-07-19 14:25:16 -07:00