You found a bug! We've classified it as EXTJS-8295 . We encourage you to continue the discussion and to find an acceptable workaround while we work on a permanent fix.
  1. #1
    Sencha Premium Member
    Join Date
    Jan 2010
    Location
    Vancouver, Canada
    Posts
    133
    Vote Rating
    10
    bogc will become famous soon enough

      0  

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

    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

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    35,731
    Vote Rating
    754
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


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

  3. #3
    Sencha User
    Join Date
    Jul 2013
    Posts
    2
    Vote Rating
    0
    rockedit is on a distinguished road

      0  

    Default


    Is bug fixed?

Thread Participants: 2

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar