1. #1
    Sencha User
    Join Date
    Feb 2011
    Location
    Düsseldorf, Germany
    Posts
    572
    Answers
    34
    Vote Rating
    31
    Kurt001 has a spectacular aura about Kurt001 has a spectacular aura about

      0  

    Default Unanswered: reset Scroller

    Unanswered: reset Scroller


    Hi,

    I am having a view, where I can expand items.
    Now I would like to check if the content fits in the parent container and enable or disable the scroller.

    So far I can figure out if a view needs to be scrollable, by scrolling to the bottom and then to the top and checking if the maxScrollPosition changed.

    But this only works once.

    If I open a container and close it and then reopen it, the maxScrollPos will no longer change.

    So I tried to reset the maxScrollPosition, but then the scroller sceem to be broken.

    Is it possible to remove the scroller and add a new one?
    Or simply reset the scroller (like put back the initialConfig)?
    Or are there values like
    Code:
    view.getScrollable().getScroller().getContainerSize() > view.getContent()

  2. #2
    bricemason's Avatar
    Join Date
    Jan 2008
    Location
    Upstate NY
    Posts
    280
    Answers
    49
    Vote Rating
    44
    bricemason has a spectacular aura about bricemason has a spectacular aura about bricemason has a spectacular aura about

      0  

    Default


    Why are you checking content to determine scrollability? Does having your content in a container configured as scrollable not an option for you?

    Brice
    Brice Mason
    Front End Developer
    Modus Create

    @bricemason
    bricemason.com

    Sencha Touch Screencasts
    Vimeo - Sencha Touch Channel

    Github Projects:
    Sencha Cordova Builder enables the automatic creation, building, and running of PhoneGap (Cordova) projects with Sencha Touch.

    Am I Sencha Touch Ready? checks your system to determine what you need to do to start Sencha Touch development. If you're having trouble getting up and running, try this out.

    Sencha Tools Bridge allows Sencha SDK Tools to co-exist with Sencha Cmd on the same system.

  3. #3
    Sencha User
    Join Date
    Feb 2011
    Location
    Düsseldorf, Germany
    Posts
    572
    Answers
    34
    Vote Rating
    31
    Kurt001 has a spectacular aura about Kurt001 has a spectacular aura about

      0  

    Default different devices

    different devices


    I have all these different screen sizes and there has to be as little scrolling as possible.
    While scrolling is active navigation gets harder (at least with a thumb of my size )

    The client wants to have no scrolling if possible. But there are containers opening and closing, ... you name it.

    To ensure there is no scrolling active, when not needed I need to disable it.

    After spending quite some time on this I found the following solution:

    Take the scroller's dom offsetHeight and see if it fits inside the containerSize.y

    Its not really resetting the scroller, but it works for me.

    I call the method whenever needed and can set the scrolling on the fly.

Thread Participants: 1

Tags for this Thread

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi