mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-29 08:34:54 +00:00
Merge "Correctly place CategoryPopupWidget in RTL"
This commit is contained in:
commit
0436c01489
|
@ -183,7 +183,9 @@ ve.ui.MWCategoryPopupWidget.prototype.setPopup = function ( item ) {
|
||||||
height = this.$menu.outerHeight( true );
|
height = this.$menu.outerHeight( true );
|
||||||
|
|
||||||
// Flip for RTL:
|
// Flip for RTL:
|
||||||
if ( this.$container.attr( 'dir' ) === 'rtl' ) {
|
// The $container does not have a 'dir' attribute; we must check the css( 'direction' )
|
||||||
|
// that is hierarchically inherited, instead, to get the proper rtl/ltr value
|
||||||
|
if ( this.$container.css( 'direction' ) === 'rtl' ) {
|
||||||
// flip me, I'm a mirror:
|
// flip me, I'm a mirror:
|
||||||
this.$element.css( {
|
this.$element.css( {
|
||||||
right: this.$container.outerWidth( true ) - left,
|
right: this.$container.outerWidth( true ) - left,
|
||||||
|
|
Loading…
Reference in a new issue