incorrect cell width causes the incorrect calculated left position of a text because when zss widget renders a right alignment text, it doesn't apply the sheet CSS file (not yet retrieve the sheet CSS from the server). Hence, the cell width it gets by jq(this.$n()).width is wrong.
If CSS is loaded (just scrolling not switching sheets), for those un-rendered cells, ZSS should process right alignment and overflow directly without waiting CSS loaded.
If CSS is not loaded (switching sheets), process right alignment text and overflow after sheet CSS is ready by sheet.addSSInitLater().
- no way to make CSS applied before width calculation at the server side because zss widget renders at client side cells first when clicking a sheet tab before sending a request to a server.
- it's harder to calculate a merged cell width by sheet.custColWidth.getSize() than by a DOM element, jq(this.$n()).width