summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/views/pivot/pivot_controller.js
diff options
context:
space:
mode:
authorJason Van Malder <jvm@odoo.com>2019-11-29 13:28:59 +0000
committerJason Van Malder <jvm@odoo.com>2019-11-29 13:28:59 +0000
commit1e6b25672ed170bdc87a543fc1449c59be9a60b5 (patch)
treea21ea5f3f8a2fabc6c4d1316aef6c2d4ae71138d /addons/web/static/src/js/views/pivot/pivot_controller.js
parent621a93b7b723999d943f1c4da78547763498c008 (diff)
[FIX] web: fix RTL pivot view dropdown
Reproduce the issue - Load Arabic language - Install Sales - Report > Sales - Switch to arabic - Click on the pivot view to display the dropdown The dropdown position is incorrect Cause The calculations are based on a `left` value who is weird. This commit use the mouse X position to compute the `left` value. OPW-2146210 X-original-commit: d021f4257c87863b75f148c4809f5e2797a1e99f
Diffstat (limited to 'addons/web/static/src/js/views/pivot/pivot_controller.js')
-rw-r--r--addons/web/static/src/js/views/pivot/pivot_controller.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/web/static/src/js/views/pivot/pivot_controller.js b/addons/web/static/src/js/views/pivot/pivot_controller.js
index 733a812d328..71427baff1b 100644
--- a/addons/web/static/src/js/views/pivot/pivot_controller.js
+++ b/addons/web/static/src/js/views/pivot/pivot_controller.js
@@ -291,7 +291,7 @@ var PivotController = AbstractController.extend({
} else {
var position = $target.position();
var top = position.top + $target.height();
- var left = position.left + ev.offsetX;
+ var left = ev.clientX;
this._renderGroupBySelection(top, left);
}
},