[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);
|
api.asc_showWorksheet(sheetIndex);
|
||||||
f7.popover.close('#idx-all-list');
|
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 (
|
return (
|
||||||
|
|
|
@ -46,8 +46,8 @@
|
||||||
padding: 0;
|
padding: 0;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
white-space: pre;
|
white-space: nowrap;
|
||||||
// overflow: hidden;
|
overflow-x: scroll;
|
||||||
// position: absolute;
|
// position: absolute;
|
||||||
// left: 0;
|
// left: 0;
|
||||||
// top: 0;
|
// top: 0;
|
||||||
|
|
Loading…
Reference in a new issue