Results 1 to 3 of 3

Thread: Buffered rendered tree: focusing/selecting a nonbuffered node doesn't make it visible

    Looks like we can't reproduce the issue or there's a problem in the test case provided.
  1. #1
    Sencha Premium Member
    Join Date
    Jan 2010
    Location
    Vancouver, Canada
    Posts
    257

    Default Buffered rendered tree: focusing/selecting a nonbuffered node doesn't make it visible

    Ext version tested:
    • Ext 4.2.0.265


    Browser versions tested against:
    • Chrome 24.0.1312.52 m
    • IE9


    Description:

    Currently, in non-buffered trees selecting a non-visible node via the selection model will bring the node in the visible area of the tree and select it.


    I expected that buffered trees would behave the same, selecting a non-buffered node would actually trigger a "page" change in the tree such that the selected node is buffered and becomes visible on the screen. That is not the case with the current implementation. I also haven't found a workaround to change the visible area in the tree via a method API such that the selected node becomes visible. treePanel.getView().focusNode(node) doesn't do the trick.


    So this code doesn't make the node visible:

    Code:
      onSelectHiddenNodeButtonClick: function (button, e, options) {
        var treePanel = Ext.getCmp('treePanel');
        // This is the last node in the tree
        var node = treePanel.getStore().getNodeById("PI60649");
        treePanel.selModel.select(node);
        // Focusing the node
        treePanel.getView().focusNode(node);
      },

    Steps to reproduce the problem:

    • Unzip the attached file in a directory where you can open app.html in your own web server of choice. Before you do that you might have to change app.html to point to the local directory where you keep extjs 4.2.0.265
    • Assuming you've successfuly opened the page in a browser, click on the Load Tree button to load the tree
    • Click on the 'Select visible node' button. The selection changes to the first node which is what I expected.
    • Now, click on the 'Select hidden node' button. The selection disappears but nothing else happens. If you scroll manually to the bottom of the tree the last node will appear to be selected which is fine.

    The result that was expected:

    • The click on the 'Select hidden node' should make the last node of the tree visible

    The result that occurs instead:

    • The selected node doesn't become visible and visible area of the tree doesn't change.
    Attached Files Attached Files

  2. #2
    Sencha Premium User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,379

    Default

    Thanks for the report! I have opened a bug in our bug tracker.

  3. #3
    Sencha User
    Join Date
    Jul 2013
    Posts
    2

    Default

    Is bug fixed?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •