[ 
https://issues.apache.org/jira/browse/PIVOT-734?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13037675#comment-13037675
 ] 

Sandro Martini commented on PIVOT-734:
--------------------------------------

Sample Steps to reproduce the problem (but there are other ways): 
in Pivot734.java, comment (or remove) the workaround code block and Run as 
Application (or Pivot Script Application, it's the same):
select "Activity" without expanding it, click on the Add button, and the child 
element will not be added (seems that listeners will not be called, so internal 
indexes will not be aligned with other data structures), and later adding other 
elements (pressing the add button) will generate exceptions.

Note: this happens without and with the previous patch (currently reverted).


> Branch controls do not update while showEmptyBranchControls=false
> -----------------------------------------------------------------
>
>                 Key: PIVOT-734
>                 URL: https://issues.apache.org/jira/browse/PIVOT-734
>             Project: Pivot
>          Issue Type: Bug
>          Components: wtk-terra
>    Affects Versions: 2.0
>            Reporter: Brent N Atkinson
>            Priority: Minor
>             Fix For: 2.1
>
>
> When showEmptyBranchControls is false, adding items to empty branch nodes 
> does not cause the UI to include branch controls for the now non-empty branch.
> Using the definition:
> {code}
> <TreeView bxml:id="aTree" styles="{showEmptyBranchControls:false}">
> ...
> </TreeView>
> {code}
> ...adding an item to an empty branch in the tree's data exposes the problem. 
> The expected behavior is that the node reflects that it is non-empty and the 
> expander controls show up. The actual behavior is that there is no change in 
> the controls for the node.
> See the user-list thread for details: 
> http://apache-pivot-users.399431.n3.nabble.com/Adding-values-to-TreeView-branch-while-using-showEmptyBranchControls-tp2842044p2842044.html

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to