1. #1
    Sencha User
    Join Date
    Oct 2010
    Posts
    1
    Vote Rating
    0
    faridmovsumov is on a distinguished road

      0  

    Default Unanswered: How to Scroll to bottom of Textarea

    Unanswered: How to Scroll to bottom of Textarea


    Hello I need your help.
    This is my code below. How can I scroll to bottom of textarea?
    It must be something like Ext.getCmp('output').setScrollPosition(Ext.getCmp('output').getScrollHeight());

    Code:
    var myWin= new Ext.Window({
                height        :    340,
                title        :    'CHAT',
                modal        :    true,
                resizable    :    false,
                draggable    :    false,
                closable    :    false,
                width        :    477,
                layout: 'absolute',
                bodyStyle    :    'padding : 10px',
                buttonAlign : 'center',
                items        :    [
                {
                    id        :    'output',
                        xtype        :    'textarea',
                    width        :    216,
                    readOnly    :    true,
                    autoScroll    :    true,
                    height        :    234,
                    x        :    10,
                    y        :    10
                },
                item6,
                {
                    id            :'input',
                    xtype        :    'textfield',
                    width        :    443,
                    y        :    249,
                    x        :    10
                }]

  2. #2
    Sencha - Ext JS Dev Team Animal's Avatar
    Join Date
    Mar 2007
    Location
    Notts/Redwood City
    Posts
    30,496
    Answers
    13
    Vote Rating
    44
    Animal has a spectacular aura about Animal has a spectacular aura about Animal has a spectacular aura about

      0  

    Default


    set the scrollTop to 1000000

Thread Participants: 1

Tags for this Thread