[SSE mobile] Fix bug: set active tab when it's not visible (large number of tabs)

This commit is contained in:
Julia Radzhabova 2018-11-08 11:37:56 +03:00
parent dd40a46fe3
commit c72a684a59

View file

@ -90,8 +90,8 @@ define([
var $el = tab.get('el');
if ( $el ) {
var rightbound = this.$boxTabs.width();
var left = tab.position().left,
right = left + parseInt(tab.css('width'));
var left = $el.position().left,
right = left + parseInt($el.css('width'));
if (left < 0) {
this.$boxTabs.scrollLeft(/*this.$boxTabs.scrollLeft() + */left - 26);