1. #1
    Sencha User
    Join Date
    Dec 2012
    Posts
    3
    Vote Rating
    0
    s0b is on a distinguished road

      0  

    Default Unanswered: Prevent element move into a panel scrollable

    Unanswered: Prevent element move into a panel scrollable


    I have to do something strange, after some hours trying to solve this problem I come here to get any idea.
    First of all, is not a normal use of sencha touch panels, but cant be done in another way (the panel that musnt be moved is into the scrollable panel and I cant change that ).
    I have a scrollable panel with some items and, in some circumstances, one of that panels musnt scroll when the parent panel is scrolled. Is easy to say but hard to code. If I get this solved, I go to take a coffee
    A second problem (less important) is that the panel that musnt be moved is also scrollable and when the parent panel is scrolled it must keep without moving (as said in the previous phrase) but must keep also his own scroll position. Wow!
    I have done a small code to show this:

    http://jsfiddle.net/e4UfT/



    In that test, when the blue block is moved, the desired effect is that the green block dont moves (keeps in the start position), but as you can see it moves with the blue block


    Hope that I have explained enoughly good the problem and thanks for your help!

    P.D: I have posted this question in Stackoverflow also, is something wrong posting the same question in that two places?

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,652
    Vote Rating
    901
    Answers
    3575
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    Please don't post in two different places, can cause duplicate work. If it's rendered as a inner child it's going to scroll. Only way it's not is if it's a floating component and you handle the positioning and sizing.
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

Thread Participants: 1

Tags for this Thread