[SSE] Fix Bug 55829

This commit is contained in:
ShimaginAndrey 2022-03-05 14:03:50 +03:00
parent c543f139eb
commit af011765a4
2 changed files with 9 additions and 2 deletions

View file

@ -366,6 +366,13 @@ const Statusbar = inject('sheets', 'storeAppOptions', 'users')(observer(props =>
api.asc_showWorksheet(sheetIndex);
f7.popover.close('#idx-all-list');
}
const tab = $$('.sheet-tabs .tab').eq(sheetIndex);
if(tab.offset().left < 0) {
$$('.sheet-tabs').scrollLeft( $$('.sheet-tabs').scrollLeft() + tab.offset().left - 96, 500);
} else {
$$('.sheet-tabs').scrollLeft( $$('.sheet-tabs').scrollLeft() + (tab.offset().left + tab.width() - $$('.sheet-tabs').width()/1.5), 500);
}
};
return (

View file

@ -46,8 +46,8 @@
padding: 0;
margin: 0;
height: 100%;
white-space: pre;
// overflow: hidden;
white-space: nowrap;
overflow-x: scroll;
// position: absolute;
// left: 0;
// top: 0;