PDA

View Full Version : [4.1 Beta 1] setVisibilityMode(Ext.Element.DISPLAY) hidden / none



slemmon
3 Jan 2012, 11:59 AM
The following code snippet is used successfully in a tree filter method in 4.0.7.


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.

slemmon
3 Jan 2012, 12:53 PM
Went ahead and submitted as a bug:
http://www.sencha.com/forum/showthread.php?170606-4.1-Beta-1-setVisibilityMode%28Ext.Element.DISPLAY%29-hidden-none