-
12 Dec 2011 10:31 AM #1
Panel won't scroll down...
Panel won't scroll down...
I'm having a problem scrolling html in on of my views. When I try and scroll with my finger on a phone the html scrolls back up to the top line like it is stuck..
Any ideas?
Code:GoR.views.HelpPanel=Ext.extend(Ext.Panel,{ title:'Help', initComponent:function(){ var config={ iconCls: 'icnHelp', items:[{ title: 'Help', xtype: 'panel', dockedItems: new Ext.Toolbar({ dock: 'top', title: 'Help' }), items: [{ xtype: 'panel', layout: 'fit', scroll: 'vertical', draggable: true, styleHtmlContent: true, html: 'Long HTML Instructions go here....' }] }] }; Ext.apply(this, config); GoR.views.HelpPanel.superclass.initComponent.apply(this, arguments); } });
-
12 Dec 2011 1:30 PM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,656
- Vote Rating
- 435
Your GoR.views.HelpPanel needs to use a layout like fit layout.
Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
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 almost in print!
When posting code, please use BBCode's CODE tags.
-
12 Dec 2011 2:24 PM #3
Thanks mitchell... That doesn't seem to work either.
Strange.. it does work in the iOS simulator but not on the phone itself. I am able to scroll a little but you have to be persistant and only touching the far right side of the screen (where the scroll bar shows up).
-
12 Dec 2011 2:27 PM #4
I took out the scroll: 'vertical' property and it started working.


Reply With Quote