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

Wrap a cell which is not in the visible area doesn't work

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: 3.8.1
    • Fix Version/s: 3.8.2
    • Component/s: None
    • Security Level: Jean
    • Labels:
      None
    • gh.sprint.customfield.default.name:
      Sprint 1

      Description

      Steps to reproduce

      1. run the zul below
        <zk>
        <button onClick="wrap()">wrap</button>
        <spreadsheet id="ss" src="/WEB-INF/issue/blank.xlsx" maxVisibleRows="800" maxVisibleColumns="20" width="100%" 
        		height="400px" 
        		showContextMenu="true" showSheetbar="true" showToolbar="true" showFormulabar="true" 
        		/>
        		<zscript><![CDATA[
        		public void wrap(){
        			CellOperationUtil.applyWrapText(Ranges.range(ss.getSelectedSheet(),22,2), true);
        			Ranges.range(ss.getSelectedSheet(),22, 2).setCellValue("something something something something");
        		}
        		]]></zscript>
        </zk>
        
      2. click wrap button
      3. scroll down to row 23

      Actual result

      the text is not wrapped.

      Workaround

      disable and enable "wrap text" on the cell again.

      Debug information

      • Wrap a cell in the visible area doesn't have such issue.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: