[
https://issues.apache.org/jira/browse/PIVOT-734?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16356024#comment-16356024
]
Roger Whitcomb commented on PIVOT-734:
--------------------------------------
So, I *think* a lot of the problem is that the "monitorPath" is not called
until/unless either "setBranchExpanded" or some form of "setSelectedPath" is
called, which is why the workaround works, and/or when the branch is
expanded/contracted after the beginning everything works. But (right now, with
some fixes applied), the first "Remove" after the "Add" doesn't appear to do
anything unless you expand/contract the node first, and you get errors trying
to click on the "new branch" which is not really there anymore.
> 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
> Assignee: Roger Whitcomb
> Priority: Minor
> Fix For: 2.5
>
>
> 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 was sent by Atlassian JIRA
(v7.6.3#76005)