From: Moriel Schottlender Date: Fri, 16 Jun 2017 22:09:09 +0000 (-0700) Subject: RCFilters: Reposition TagItemWidget to be center on the widget X-Git-Tag: 1.31.0-rc.0~2915^2 X-Git-Url: http://git.cyclocoop.org/%24href?a=commitdiff_plain;h=6fd9df3f45ca8ccf7db01ee770330dcf3b5e2f0f;p=lhc%2Fweb%2Fwiklou.git RCFilters: Reposition TagItemWidget to be center on the widget Bug: T168091 Change-Id: Iea714cb9c63d30163f01e35e447684af5f39f3ae --- diff --git a/resources/src/mediawiki.rcfilters/ui/mw.rcfilters.ui.TagItemWidget.js b/resources/src/mediawiki.rcfilters/ui/mw.rcfilters.ui.TagItemWidget.js index 886f6d4c80..bf75149706 100644 --- a/resources/src/mediawiki.rcfilters/ui/mw.rcfilters.ui.TagItemWidget.js +++ b/resources/src/mediawiki.rcfilters/ui/mw.rcfilters.ui.TagItemWidget.js @@ -42,7 +42,6 @@ } }, config ) ); - this.positioned = false; this.popupTimeoutShow = null; this.popupTimeoutHide = null; @@ -109,12 +108,6 @@ if ( labelText ) { this.popupLabel.setLabel( labelText ); - if ( !this.positioned ) { - // Recalculate anchor position to be center of the capsule item - this.popup.$anchor.css( 'margin-left', ( this.$element.width() / 2 ) ); - this.positioned = true; - } - // Set timeout for the popup to show this.popupTimeoutShow = setTimeout( function () { this.popup.toggle( true );