Uploaded image for project: 'ZK Spreadsheet'
  1. ZK Spreadsheet
  2. ZSS-1384

render a text in right alignment incorrectly when the cell is across frozen columns

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 3.9.5
    • 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.

            hawk hawk
            hawk hawk
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: