Index: trunk/extensions/UsabilityInitiative/js/plugins/jquery.wikiEditor.toc.js |
— | — | @@ -119,11 +119,10 @@ |
120 | 120 | var $this = $( this ), context = $this.data( 'context' ), |
121 | 121 | pT = $this.parent().position().top - 1; |
122 | 122 | $this.parent() |
123 | | - .css( 'position', 'absolute' ) |
124 | | - .css( { 'left': 'auto', 'right': 0, 'top': pT } ) |
| 123 | + .css( { 'marginTop': '1px', 'position': 'absolute', 'left': 'auto', 'right': 0, 'top': pT } ) |
125 | 124 | .fadeOut( 'fast', function() { |
126 | 125 | $( this ).hide() |
127 | | - .css( 'width', '1px' ); |
| 126 | + .css( { 'marginTop': '0', 'width': '1px' } ); |
128 | 127 | context.$ui.find( '.wikiEditor-ui-toc-expandControl' ).fadeIn( 'fast' ); |
129 | 128 | } ) |
130 | 129 | .prev() |
— | — | @@ -150,9 +149,10 @@ |
151 | 150 | context.$ui.find( '.wikiEditor-ui-toc-expandControl' ).hide(); |
152 | 151 | $this.parent() |
153 | 152 | .show() |
| 153 | + .css( 'marginTop', '1px' ) |
154 | 154 | .animate( { 'width' : openWidth }, 'fast', function() { |
155 | 155 | context.$content.trigger( 'mouseup' ); |
156 | | - $( this ).css( { 'position': 'relative', 'right': 'auto', 'top': 'auto' } ); |
| 156 | + $( this ).css( { 'marginTop': '0', 'position': 'relative', 'right': 'auto', 'top': 'auto' } ); |
157 | 157 | // Let the UI know things have moved around |
158 | 158 | context.fn.trigger( 'resize' ); |
159 | 159 | } ) |