The following code snippet is used successfully in a tree filter method in 4.0.7.
Code:
var viewNode = Ext.fly(tree.getView().getNode(node));
if (viewNode) {
viewNode.setVisibilityMode(Ext.Element.DISPLAY);
if (Ext.Array.contains(visibleNodes, node)) {
viewNode.show()
} else {
viewNode.hide()
}
}
That works in 4.0.7 and when hidden the tree node is attributed with style = "display:none;" and the node is removed from view such that neighboring nodes are all collapsed against one another. In 4.1 Beta 1 each tree node is attributed with style = "display:hidden;" leaving a space where the node was previously visible.
Ext.Element.DISPLAY evals to 2 in both versions.
Any idea if this is a known condition? I didn't see anything on it in the known issues list.