1. #1
    Sencha - Support Team slemmon's Avatar
    Join Date
    Mar 2009
    Location
    Boise, ID
    Posts
    6,062
    Vote Rating
    215
    slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of

      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
    6,062
    Vote Rating
    215
    slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of

      0  

    Default


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