Index: trunk/extensions/ArticleCreationWorkflow/modules/ext.articleCreation.user/ext.articleCreation.user.js |
— | — | @@ -156,8 +156,8 @@ |
157 | 157 | .css('top', (( $tooltip.height() / 2) -10) + 'px' ) |
158 | 158 | .end(); |
159 | 159 | //set the tooltip position |
160 | | - var newPosition = ($tooltip.height() / 2 ) - |
161 | | - ($button.height() / 2) - 10; |
| 160 | + var newPosition = ( $button.position().top + ( $button.outerHeight( true ) / 2 ) ) - |
| 161 | + ( $tooltip.outerHeight() / 2 ); |
162 | 162 | $tooltip.css('top', newPosition+'px'); |
163 | 163 | }, |
164 | 164 | |