r112774 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r112773‎ | r112774 | r112775 >
Date:05:32, 1 March 2012
Author:kaldari
Status:ok
Tags:
Comment:
fixing tooltip position relative to button
Modified paths:
  • /trunk/extensions/ArticleCreationWorkflow/modules/ext.articleCreation.user/ext.articleCreation.user.js (modified) (history)

Diff [purge]

Index: trunk/extensions/ArticleCreationWorkflow/modules/ext.articleCreation.user/ext.articleCreation.user.js
@@ -156,8 +156,8 @@
157157 .css('top', (( $tooltip.height() / 2) -10) + 'px' )
158158 .end();
159159 //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 );
162162 $tooltip.css('top', newPosition+'px');
163163 },
164164

Status & tagging log