1. #1
    Sencha - Support Team slemmon's Avatar
    Join Date
    Mar 2009
    Location
    Boise, ID
    Posts
    2,242
    Vote Rating
    64
    slemmon is just really nice slemmon is just really nice slemmon is just really nice slemmon is just really nice slemmon is just really nice

      0  

    Default [4.1 Beta 1] setVisibilityMode(Ext.Element.DISPLAY) hidden / none

    [4.1 Beta 1] setVisibilityMode(Ext.Element.DISPLAY) hidden / none


    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.

  2. #2
    Sencha - Support Team slemmon's Avatar
    Join Date
    Mar 2009
    Location
    Boise, ID
    Posts
    2,242
    Vote Rating
    64
    slemmon is just really nice slemmon is just really nice slemmon is just really nice slemmon is just really nice slemmon is just really nice

      0  

    Default


    Went ahead and submitted as a bug:
    http://www.sencha.com/forum/showthre...29-hidden-none