diff --git a/apps/common/main/lib/component/Mixtbar.js b/apps/common/main/lib/component/Mixtbar.js index 8cf6014d9..f414691dd 100644 --- a/apps/common/main/lib/component/Mixtbar.js +++ b/apps/common/main/lib/component/Mixtbar.js @@ -263,6 +263,8 @@ define([ _right_bound_ = Math.round(_left_bound_ + $boxTabs.width()); var tab = this.$tabs.filter(':first:visible').get(0); + if ( !tab ) return false; + var rect = tab.getBoundingClientRect(); if ( !(Math.round(rect.left) < _left_bound_) ) {