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

wrap text does not wrap text like excel

      If I enter a lot of text in a cell and then select wrap text, the text does not appear wrapped properly. It really doesn't wrap, but it just doesn't spill over into neighboring cells


      Problem Description:

      "Wrap text" should make text in a cell break into multiple lines if text is longer than the cell's width. It displays a text in multiple lines only when the text contains line break (type alt+enter)

      Reproducing Steps:

      1. in the Spreadsheet, type a text which is longer than a cell's width
      2. click the cell and select enable "wrap text"

      expected:
      text should be displayed in multiple lines in the cell.

      Actual:
      the cell doesn't show the text in overflow way but still doesn't warp.

          [ZSS-241] wrap text does not wrap text like excel

          mdavis added a comment -

          We need the cell to shrink back (see item #2 from Hawk's comment, and we notice that the wrapping does not work consistently on sheets other than the first one.

          mdavis added a comment - We need the cell to shrink back (see item #2 from Hawk's comment, and we notice that the wrapping does not work consistently on sheets other than the first one.

          hawk added a comment -

          Problem Description:

          Wrap text does not wrap text like excel. The "wrap text" only takes effect on cells with white space.

          Root Cause:

          Original implementation just apply "white-space:normal", this CSS property only break a line with space character (or line break character)

          Solution:

          apply CSS "word-wrap:break-word;" to cells.

          New behavior after applying this fix:

          1. The "wrap text" takes effect on cells with string.
          2. The cell's height is not shrinked back after disable "wrap text".
          3. if wrapping text causes height of rows change, it should send event "onZSSHeaderModif" to the server

          hawk added a comment - Problem Description: Wrap text does not wrap text like excel. The "wrap text" only takes effect on cells with white space. Root Cause: Original implementation just apply "white-space:normal", this CSS property only break a line with space character (or line break character) Solution: apply CSS "word-wrap:break-word;" to cells. New behavior after applying this fix: The "wrap text" takes effect on cells with string. The cell's height is not shrinked back after disable "wrap text". if wrapping text causes height of rows change, it should send event "onZSSHeaderModif" to the server

          hawk added a comment - - edited

          zss-bug-wrap.zul contains javascript work around.

          hawk added a comment - - edited zss-bug-wrap.zul contains javascript work around.

          mdavis added a comment -

          We are still looking to see if there is an update on this issue. We would like it before we go live in September

          mdavis added a comment - We are still looking to see if there is an update on this issue. We would like it before we go live in September

          mdavis added a comment -

          Is there a timeline for this to be resolved? We are planning to go live with our release in September.

          mdavis added a comment - Is there a timeline for this to be resolved? We are planning to go live with our release in September.

          samchuang added a comment -

          Hi mdavis

          I cannot reproduce it using the zss demo
          http://zssdemo.zkoss.org/

          refer to video here
          http://screencast.com/t/v21SJex1Oa

          please provide specific steps that can reproduce the issue

          samchuang added a comment - Hi mdavis I cannot reproduce it using the zss demo http://zssdemo.zkoss.org/ refer to video here http://screencast.com/t/v21SJex1Oa please provide specific steps that can reproduce the issue

            RaymondChao RaymondChao
            mdavis mdavis
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: