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

Sometimes we cannot close a Treeitem in one click

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: 7.0.3
    • Fix Version/s: 7.0.5
    • Component/s: None
    • Security Level: Jimmy
    • Labels:
      None

      Description

      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.

        Attachments

        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

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: