diff --git a/apps/common/main/lib/component/Mixtbar.js b/apps/common/main/lib/component/Mixtbar.js index 24944dcff..1ecf96d83 100644 --- a/apps/common/main/lib/component/Mixtbar.js +++ b/apps/common/main/lib/component/Mixtbar.js @@ -93,6 +93,7 @@ define([ Common.UI.BaseView.prototype.initialize.call(this, options); var _template_tabs = + !Common.UI.isRTL() ? '
' + '' + '' + '' + + '
' : + '
' + + '' + + '' + + '' + '
'; this.$layout = $(options.template({ @@ -365,13 +382,13 @@ define([ var _left_bound_ = Math.round($boxTabs.offset().left), _right_bound_ = Math.round(_left_bound_ + $boxTabs.width()); - var tab = this.$tabs.filter(':visible:first').get(0); + var tab = this.$tabs.filter(Common.UI.isRTL() ? ':visible:last' : ':visible:first').get(0); if ( !tab ) return false; var rect = tab.getBoundingClientRect(); if ( !(Math.round(rect.left) < _left_bound_) ) { - tab = this.$tabs.filter(':visible:last').get(0); + tab = this.$tabs.filter(Common.UI.isRTL() ? ':visible:first' : ':visible:last').get(0); rect = tab.getBoundingClientRect(); if (!(Math.round(rect.right) > _right_bound_)) @@ -532,7 +549,6 @@ define([ }, clearMoreButton: function(tab) { - console.log('clearMoreButton'); var panel = this.$panels.filter('[data-tab=' + tab + ']'); if ( panel.length ) { var data = panel.data();