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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: 3.9.4
    • Fix Version/s: 3.9.5
    • Component/s: None
    • Security Level: Jimmy
    • Labels:
      None

      Description

      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.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: