Merge "ve.ui.MWCategoryPopupWidget: Fix popup positioning"

This commit is contained in:
jenkins-bot 2017-04-20 07:52:24 +00:00 committed by Gerrit Code Review
commit 0c31c3c243

View file

@ -184,13 +184,6 @@ ve.ui.MWCategoryPopupWidget.prototype.setDefaultSortKey = function ( value ) {
* @param {ve.ui.MWCategoryItemWidget} item Category item
*/
ve.ui.MWCategoryPopupWidget.prototype.setPopup = function ( item ) {
var pos = OO.ui.Element.static.getRelativePosition( item.$indicator, this.$element.offsetParent() );
// Align to the middle of the indicator
pos.left += item.$indicator.width() / 2;
// Position below the indicator
pos.top += item.$indicator.height();
this.$element.css( pos );
this.setFloatableContainer( item.$element );
this.updateDimensions();
};