My favorites | Sign in
Project Home Downloads
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions
Issue 162: Select node even if it is focused
1 person starred this issue and may be notified of changes. Back to list
Status:  Invalid
Owner:  ----
Closed:  Nov 2010


 
Reported by oll...@gmail.com, Nov 8, 2010
What steps will reproduce the problem?
1. Select a lazy loaded node. Its contents screen will show and its children in the tree will show.
2. Click on something else that will take over the contents area that was initially populated by the tree node.
3. Now the tree node will be activated even though its contents are not in focus. I can deal with that.
4. Click the active node to see its contents again. The children will collapse biut the contents wont be shown as if the node was "selected".

I suppose it would be nice if the selected code would be called ALWAYS regardless of if it is active.

Or is it necessary for me to UNACTIVATE the tree on a click outside of the tree?

Using the latest version.
Nov 8, 2010
Project Member #1 moo...@wwwendt.de
With 'contents screen' you mean a preview pane in your application?

ad 3. 
We are in fact calling deactivate() for the active node, when the context changes.
That reflects the context status best, I think

ad 4.
in that case clicking the node again would work as expected.
Alternatively you could use onClick(node) instead of onActivate(node), this is fired always.

Status: Waiting
Nov 8, 2010
#2 oll...@gmail.com
Duh. onClick is exactly what I was thinking of.

I found that I need to leave the onActivate option, even though there is nothing in the function, otherwise the node would not be activated. So it currently looks like...

onActivate: function(n) {
        	        	
		},
		onClick: function(n) {
			loadPluginView(n.data.plugin_id, n.data.plugin_type, n.data.plugin_type+'_edit_view', false);
		},

So with the onClick I am getting my "preview pane"/"contents screen" as I was hoping. The only problem now is I would like to check if the node is already open, if so, do not collapse the children. Only the plus/minus sign would be doing the collapse in this situation.
Nov 8, 2010
Project Member #3 moo...@wwwendt.de
> I found that I need to leave the onActivate option...

I would consider this a bug but i could not reproduce it.
Could you confirm this one?

Nov 8, 2010
Project Member #4 moo...@wwwendt.de
(No comment was entered for this change.)
Labels: Milestone-Release1.0
Nov 14, 2010
Project Member #5 moo...@wwwendt.de
could not reproduce
Status: Invalid

Powered by Google Project Hosting