diff --git a/addons/web/static/lib/jquery.ui/jquery-ui.js b/addons/web/static/lib/jquery.ui/jquery-ui.js index 2d48addb2a3..d4b4ebabe17 100644 --- a/addons/web/static/lib/jquery.ui/jquery-ui.js +++ b/addons/web/static/lib/jquery.ui/jquery-ui.js @@ -3527,6 +3527,8 @@ $.widget( "ui.resizable", $.ui.mouse, { // See #7960 zIndex: 90, + odoo_isRTL: false, + // Callbacks resize: null, start: null, @@ -3880,6 +3882,7 @@ $.widget( "ui.resizable", $.ui.mouse, { dx = ( event.pageX - smp.left ) || 0, dy = ( event.pageY - smp.top ) || 0, trigger = this._change[ a ]; + dx = this.options.odoo_isRTL ? -dx : dx; this._updatePrevProperties(); @@ -4651,11 +4654,19 @@ $.ui.plugin.add( "resizable", "grid", { } if ( newWidth - gridX > 0 ) { that.size.width = newWidth; - that.position.left = op.left - ox; + if (that.options.odoo_isRTL) { + that.position.left = op.left + ox; + } else { + that.position.left = op.left - ox; + } } else { newWidth = gridX - outerDimensions.width; that.size.width = newWidth; - that.position.left = op.left + os.width - newWidth; + if (that.options.odoo_isRTL) { + that.position.left = op.left - os.width + newWidth; + } else { + that.position.left = op.left + os.width - newWidth; + } } } }