Index: trunk/extensions/UsabilityInitiative/css/wikiEditor.toc.css |
— | — | @@ -22,6 +22,10 @@ |
23 | 23 | padding: 0; |
24 | 24 | margin: 0.5em 1em; |
25 | 25 | list-style: none; |
| 26 | + /* IE needs to be told in great detail how to act, or it misbehaves */ |
| 27 | + list-style-image: none; |
| 28 | + list-style-position: outside; |
| 29 | + list-style-type: none; |
26 | 30 | } |
27 | 31 | .wikiEditor-ui-toc ul ul { |
28 | 32 | padding: 0; |
Index: trunk/extensions/UsabilityInitiative/js/plugins/jquery.wikiEditor.toc.js |
— | — | @@ -26,6 +26,8 @@ |
27 | 27 | context.modules.$toc = $( '<div />' ) |
28 | 28 | .addClass( 'wikiEditor-ui-toc' ) |
29 | 29 | .attr( 'id', 'wikiEditor-ui-toc' ); |
| 30 | + // If we ask for this later (after we insert the TOC) then in IE this measurement will be incorrect |
| 31 | + var height = context.$ui.find( '.wikiEditor-ui-bottom' ).height() |
30 | 32 | context.$ui.find( '.wikiEditor-ui-bottom' ) |
31 | 33 | .append( context.modules.$toc ); |
32 | 34 | context.modules.$toc.height( |
— | — | @@ -33,10 +35,7 @@ |
34 | 36 | ); |
35 | 37 | // Make some css modifications to make room for the toc on the right... |
36 | 38 | // Perhaps this could be configurable? |
37 | | - context.modules.$toc |
38 | | - .css( { 'width': '12em', |
39 | | - 'marginTop': -( context.$ui.find( '.wikiEditor-ui-bottom' ).height() ) |
40 | | - } ); |
| 39 | + context.modules.$toc.css( { 'width': '12em', 'marginTop': -( height ) } ); |
41 | 40 | context.$ui.find( '.wikiEditor-ui-text' ) |
42 | 41 | .css( ( $( 'body.rtl' ).size() ? 'marginLeft' : 'marginRight' ), '12em' ); |
43 | 42 | // Add the TOC to the document |