Results 1 to 5 of 5

Thread: scroll treepanel

    Looks like we can't reproduce the issue or there's a problem in the test case provided.
  1. #1
    Sencha User
    Join Date
    Oct 2007
    Posts
    89

    Default scroll treepanel

    Hi,

    I have a problem with the scroll

    The problem is referenced by the link : http://fiddle.jshell.net/P9TkZ/15/

    If I click node 3, it expends ...
    Then if I click of node 6 the scroll up then it should be don't move and show the node

    What's the problem because I am lost ?


    Thanks you for your help.

    lenoil

  2. #2
    Sencha User
    Join Date
    Feb 2013
    Location
    California
    Posts
    11,985

    Default

    I'm not following you on this, as the tree seems to be functioning correctly in your example. I click the 'node3' folder and it expands. I then click the 'node6' folder and it also expands. The scrollbar increases in size to accommodate the children, though they are not visible since 'node6' was previously at the bottom of view. Can you clarify what behavior you are expecting?

  3. #3
    Sencha User
    Join Date
    Oct 2007
    Posts
    89

    Default

    Thanks you for looking at my problem, Gary

    The problem is here:
    http://fiddle.jshell.net/lenoil/nEMY2/6/

    You click:
    - node3 and it expand
    - node4 and it expand
    - node6 and the scroll up in my combo, I don't see node 6 what's the problem ?


    Thanks for your response.

  4. #4
    Sencha User
    Join Date
    Oct 2007
    Posts
    89

    Default

    I tried to add a listener in a treepanel but it doesn't work

    Code:
     listeners : {
                  itemexpand : function(ni, opt)
                  {
                    console.log(this.el);
                    var view = _tree.getView();
                      var nodeHTML = view.getNode(ni);
                      console.log(view.el);
                      Ext.fly(nodeHTML).scrollIntoView(view.el);
                  }
              
              }

  5. #5
    Sencha User
    Join Date
    Feb 2013
    Location
    California
    Posts
    11,985

    Default

    I see it now. I have opened a bug in our bug tracker.

Posting Permissions

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