PDA

View Full Version : [UNKNOWN][3.1svn] TreeGridNodeUI does not set the x-tree-node-leaf class on nodes



kristoph
30 Dec 2009, 6:04 PM
The TreeGridNodeUI.renderElements implementation does not set the x-tree-node-leaf class on all nodes.

This style is (I think) required on all nodes and is applied to all TreeNodeUI created elements. It is replaced on an as needed basis by the TreeNodeUI.updateExpandIcon implementation which is also called when TreeGridNodeUI is used.

The following change is recommended to TreeGridNodeUI.js, line 18:


'<tr ext:tree-node-id="', n.id ,'" class="x-tree-node-el x-tree-node-leaf ', a.cls, '">',

kristoph
30 Dec 2009, 6:09 PM
I should add that the most obvious issue related to the absence of this style is that leaf node icons are not positioned properly or size constrained.