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 de1e63c3f0f..6d1b35931bd 100644 --- a/addons/web/static/src/js/views/list/list_renderer.js +++ b/addons/web/static/src/js/views/list/list_renderer.js @@ -1287,12 +1287,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