[SSE mobile] Fix bug: set active tab when it's not visible (large number of tabs)
This commit is contained in:
parent
dd40a46fe3
commit
c72a684a59
|
@ -90,8 +90,8 @@ define([
|
||||||
var $el = tab.get('el');
|
var $el = tab.get('el');
|
||||||
if ( $el ) {
|
if ( $el ) {
|
||||||
var rightbound = this.$boxTabs.width();
|
var rightbound = this.$boxTabs.width();
|
||||||
var left = tab.position().left,
|
var left = $el.position().left,
|
||||||
right = left + parseInt(tab.css('width'));
|
right = left + parseInt($el.css('width'));
|
||||||
|
|
||||||
if (left < 0) {
|
if (left < 0) {
|
||||||
this.$boxTabs.scrollLeft(/*this.$boxTabs.scrollLeft() + */left - 26);
|
this.$boxTabs.scrollLeft(/*this.$boxTabs.scrollLeft() + */left - 26);
|
||||||
|
|
Loading…
Reference in a new issue