9 Jan 2013 6:28 AM #1
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:
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?
11 Jan 2013 6:50 AM #2
- Join Date
- Mar 2007
- Gainesville, FL
- Vote Rating
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 @LikelyMitch
Sencha Inc, Senior Software Engineer
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
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 email@example.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.