-
Bug
-
Resolution: Fixed
-
Normal
-
3.9.4
-
None
-
Security Level: Jimmy
-
None
Steps to Reproduce
1. run 1338-overflow-right-align.zul
2. select the "freeze" sheet
3. check the merged cell A10:D10
Current Result
render a text at wrong position
Expected Result
zss should shift the text right a bit on the left frozen columns
Debug Information
- no such issue with 3.9.2
Root Cause
For a merged cell across frozen columns, .zsfzleft doesn't contains its complete DOM, some cells are in the .zsscroll. So the current implementation shifts a text in a wrong position.
Solution
when a text width is longer than a cell inner width (without padding), we need to shift the text to left.
We can determine a (merged/not merged) cell's inner width by jq(this.$n()).width(). .zsmergeID determines the merged width.
If we set width on .zscelltxt, it will override the width in .zsmergeID and can't shift a text correctly.