[SSE] Fix Bug 55829
This commit is contained in:
parent
c543f139eb
commit
af011765a4
|
@ -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 (
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue