Uploaded image for project: 'Keikai'
  1. Keikai
  2. KEIKAI-373

show a hidden formula bar causes a javascript error

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 5.5.0
    • 5.4.0
    • None
    • None

      Steps to Reproduce

          <button label="show" onClick="show()"/>
              <spreadsheet id="spreadsheet" hflex="1" vflex="1"
                           maxVisibleRows="100" maxVisibleColumns="20" />
          <zscript>
              public void show(){
                  spreadsheet.setShowFormulabar(true);
                  spreadsheet.setShowToolbar(true);
              }
          </zscript>
      

      1. click "show" button

      Current Result

      zk.wpd:27589 Uncaught TypeError: Cannot read property 'style' of undefined
      at init._resizeBody (zul.layout.wpd:266)
      at init._resizeWgt (zul.layout.wpd:227)
      at init._resize (zul.layout.wpd:202)
      at init.resize (zul.layout.wpd:160)
      at init.onCommandReady (zul.layout.wpd:128)
      at _invoke (zk.wpd:16465)
      at init.fire (zk.wpd:16448)
      at _fire (zk.wpd:16591)
      at Object.fire (zk.wpd:16760)
      at Object.fire (zk.wpd:18564)
      the formula bar is blank

      Expected Result

      the formula bar is visible

      Debug Information

      • 5.5.0 FL still has this bug

      Workaround

      spreadsheet.invalidate();

            wenninghsu wenninghsu
            hawk hawk
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: