Gelmiş geçmiş en büyük porno sitemiz olan 2pe de her zaman en kaliteli pornoları sunmayı hedefledik. Diğer video sitemiz olan vuam da ise hd porno ağırlıklı çalışmalara başladık.

  1. #1
    Sencha User
    Join Date
    Feb 2011
    Posts
    10
    Vote Rating
    0
    Chris26 is on a distinguished road

      0  

    Default how to update scroller

    how to update scroller


    Hi,

    i have dynamically growing/shrinking textareas in a formpanel. The problem is that the scroller of the surrounding formpanel does not get updated correct.

    how can i update the scroller?

    thanks!
    Chris

  2. #2
    Sencha User
    Join Date
    Feb 2011
    Posts
    10
    Vote Rating
    0
    Chris26 is on a distinguished road

      0  

    Default


    this is my grow/shrink function and i call it on keyup for the textarea.

    Code:
    utils.grow = function(ta) {
        var textarea = ta.fieldEl.dom;
        
        textarea.style.height = textarea.style.lineHeight;
        
        ta.fieldEl.setHeight(textarea.scrollHeight);
        ta.setHeight(textarea.scrollHeight);
    }
    now i think i have to update the bounds of the scroller of the textareafield surrounding formpanel...

    (the scroller is only broken if the textarea gets higher than one screenheight)

  3. #3
    Sencha User
    Join Date
    Jan 2011
    Posts
    1
    Vote Rating
    0
    fvarona is on a distinguished road

      0  

    Default


    Hello.

    I'm not sure, but maybe if you do a doLayout() or doComponentLayout() in the surrounding object...

    Regards,

    FranV

  4. #4
    Sencha User
    Join Date
    Feb 2011
    Posts
    10
    Vote Rating
    0
    Chris26 is on a distinguished road

      0  

    Default


    i tried that already, it is not working, but thanks!

  5. #5
    Sencha User
    Join Date
    Feb 2011
    Posts
    10
    Vote Rating
    0
    Chris26 is on a distinguished road

      0  

    Default


    any other ideas?

  6. #6
    Ext JS Premium Member
    Join Date
    Jun 2007
    Posts
    104
    Vote Rating
    5
    miroperez is on a distinguished road

      0  

    Default


    I ran into an issue with a dataview when it was scrolled down towards the bottom then if you refreshed the data the scroll didn't go to the top so you didn't see anything after that (because it's stuck at the top). This is what I had to do because I didn't see an api to reset the scroll:

    Code:
    var scrollEl = this.dataView.scrollEl;
    Ext.DomHelper.applyStyles(scrollEl, "-webkit-transform: translate3d(0px, 0px, 0px)");
    Inspect around the formpanel dom for something with the above -webkit-tranform. Hope this helps.

  7. #7
    Sencha - Support Team keckeroo's Avatar
    Join Date
    Mar 2008
    Location
    Winnipeg, Canada
    Posts
    290
    Vote Rating
    9
    keckeroo will become famous soon enough

      0  

Similar Threads

  1. Replies: 1
    Last Post: 22 Dec 2010, 6:47 AM
  2. Where is scroller.parentSize?
    By dbottillo in forum Sencha Touch 1.x: Discussion
    Replies: 1
    Last Post: 3 Nov 2010, 5:10 AM
  3. [FIXED-104] Carousel.add/dolayout doesn't update scroller bounds
    By Iumentum in forum Sencha Touch 1.x: Bugs
    Replies: 2
    Last Post: 28 Jun 2010, 1:57 PM
  4. this.scroller
    By quintino in forum Ext 3.x: Help & Discussion
    Replies: 5
    Last Post: 6 Apr 2010, 12:38 PM
  5. Tab scroller
    By bkraut in forum Ext 2.x: Help & Discussion
    Replies: 1
    Last Post: 16 Dec 2007, 9:23 AM

Thread Participants: 3