1. #1
    Sencha User
    Join Date
    Aug 2008
    Posts
    101
    Vote Rating
    6
    FoxMulder900 is on a distinguished road

      0  

    Default Jump to anchor in panel with html [SOLVED]

    Jump to anchor in panel with html [SOLVED]


    I set up a tree panel as a table of contents for quite a bit of html data that I have. I also have a panel filled with the html data and inside the html I have an anchor for each node in the tree. I want to be able to click a node in the tree and have the html panel jump to the appropriate anchor. Any ideas on how to do something like this? Alternatively if I could figure out how to set the y scroll position of the panel I could get the position of the anchor and scroll to it manually.

    Any input would be much appreciated!

  2. #2
    Sencha - Ext JS Dev Team Animal's Avatar
    Join Date
    Mar 2007
    Location
    Notts/Redwood City
    Posts
    30,546
    Vote Rating
    64
    Animal is a jewel in the rough Animal is a jewel in the rough Animal is a jewel in the rough

      0  

    Default


    Use Element.scrollIntoView?

  3. #3
    Sencha User
    Join Date
    Aug 2008
    Posts
    101
    Vote Rating
    6
    FoxMulder900 is on a distinguished road

      0  

    Default


    Great! Thanks a lot! all I had to do was:

    Ext.get('anchor_id').scrollIntoView(TextPanel.body);

Thread Participants: 1