Index: trunk/extensions/UsabilityInitiative/js/plugins/jquery.wikiEditor.toc.js |
— | — | @@ -127,7 +127,11 @@ |
128 | 128 | context.$ui.find( '.wikiEditor-ui-toc-expandControl' ).fadeIn( 'fast' ); |
129 | 129 | } ) |
130 | 130 | .prev() |
131 | | - .animate( { 'marginRight': '-1px' }, 'fast', function() { $( this ).css( 'marginRight', 0 ); } ) |
| 131 | + .animate( { 'marginRight': '-1px' }, 'fast', function() { |
| 132 | + $( this ).css( 'marginRight', 0 ); |
| 133 | + // Let the UI know things have moved around |
| 134 | + context.fn.trigger( 'resize' ); |
| 135 | + } ) |
132 | 136 | .children() |
133 | 137 | .animate( { 'marginRight': '1px' }, 'fast', function() { $( this ).css( 'marginRight', 0 ); } ); |
134 | 138 | $.cookie( 'wikiEditor-' + context.instance + '-toc-width', 0 ); |
— | — | @@ -149,6 +153,8 @@ |
150 | 154 | .animate( { 'width' : openWidth }, 'fast', function() { |
151 | 155 | context.$content.trigger( 'mouseup' ); |
152 | 156 | $( this ).css( { 'position': 'relative', 'right': 'auto', 'top': 'auto' } ); |
| 157 | + // Let the UI know things have moved around |
| 158 | + context.fn.trigger( 'resize' ); |
153 | 159 | } ) |
154 | 160 | .prev() |
155 | 161 | .animate( { 'marginRight': ( parseFloat( openWidth ) * -1 ) }, 'fast' ) |