Uploaded image for project: 'ZK'
  1. ZK
  2. ZK-2547

Sometimes we cannot close a Treeitem in one click

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 7.0.5
    • 7.0.3
    • None
    • Security Level: Jimmy
    • None

      Steps to Reproduce

      1. run attached zul with attached composer and class
      2. open several Treeitems
      3. close them one by one

      Actual Result

      In closing Treeitems, I found some treeitems cannot be closed in one click. I need to click 2 or more times to close it.

      you can watch the video to see how I reproduce it.


      Debug Information

      • The issue happens only on version after 7.0.3.FL.20140801-Eval because of fix for ZK-2375
      • If you remove the code below inside attached TreeRendererTest.java
        treeItem.setOpen(row.open); 
        		
        		// With this we ensure the row can be opened after its updated
        		DefaultTreeModel model = (DefaultTreeModel) treeItem.getTree().getModel();
        		if (row.open)
        			model.addOpenObject(data);	
        

        Then the issue will happen in less frequency, but still happens especially if you close a treeitem when multiple treeitems are open already.

        1. ErrorCollapseTreeitem.swf
          1.27 MB
        2. TestComposer.java
          7 kB
        3. TestObject.java
          0.2 kB
        4. treeitem.zul
          4 kB
        5. TreeRendererTest.java
          6 kB

            ChunfuChang ChunfuChang
            hawk hawk
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: