From c72a684a596978f437689e2bd556343d2c987296 Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Thu, 8 Nov 2018 11:37:56 +0300 Subject: [PATCH] [SSE mobile] Fix bug: set active tab when it's not visible (large number of tabs) --- apps/spreadsheeteditor/mobile/app/view/Statusbar.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/spreadsheeteditor/mobile/app/view/Statusbar.js b/apps/spreadsheeteditor/mobile/app/view/Statusbar.js index 18009dce1..c8b6e3996 100644 --- a/apps/spreadsheeteditor/mobile/app/view/Statusbar.js +++ b/apps/spreadsheeteditor/mobile/app/view/Statusbar.js @@ -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);