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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 3.8.2
    • 3.8.1
    • None
    • Security Level: Jean
    • None
    • Sprint 1

      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.

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

              Created:
              Updated:
              Resolved: