summaryrefslogtreecommitdiff
path: root/addons/web/static/src
diff options
context:
space:
mode:
Diffstat (limited to 'addons/web/static/src')
-rw-r--r--addons/web/static/src/js/views/list/list_renderer.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/addons/web/static/src/js/views/list/list_renderer.js b/addons/web/static/src/js/views/list/list_renderer.js
index 05f7c6d5f09..cda4e07e5b4 100644
--- a/addons/web/static/src/js/views/list/list_renderer.js
+++ b/addons/web/static/src/js/views/list/list_renderer.js
@@ -1272,12 +1272,12 @@ var ListRenderer = BasicRenderer.extend({
ev.stopPropagation();
this.$('.o_optional_columns .dropdown-toggle').dropdown('toggle');
// Explicitly set left of the optional column dropdown as it is pushed inside
- // this.$el, so we need to position it at the end of top right/left corner based
- // on language direction.
- var left = _t.database.parameters.direction === 'rtl' ?
- this.$('.o_optional_columns .o_optional_columns_dropdown').width() :
- this.$("table").width();
- this.$('.o_optional_columns').css("left", left);
+ // this.$el, so we need to position it at the end of top left corner in case of
+ // rtl language direction.
+ if (_t.database.parameters.direction === 'rtl') {
+ var left = this.$('.o_optional_columns .o_optional_columns_dropdown').width();
+ this.$('.o_optional_columns').css("left", left);
+ }
},
/**
* Manages the keyboard events on the list. If the list is not editable, when the user navigates to