-
6 Jul 2012 1:56 PM #1
Scrolling broken after using iOS soft keyboard's 'Next' button
Scrolling broken after using iOS soft keyboard's 'Next' button
REQUIRED INFORMATION
Sencha Touch versions tested:- 2.0.1
- 2.0.1.1
- Safari (on iOS 5.1.1)
- Chrome 19.0.1084.60 (on iOS 5.1.1)
- html (as in HTML5)
- When you use the 'Next' button in the iOS soft keyboard and it has to 'scroll' to the next text field, it ruins Sencha Touch's scrolling.
- Tap the first text field
- Tap 'Next' a few times on the soft keyboard that appears to get to the last text field
- Tap 'Done'
- I should still be able to scroll back up to see the first text field
- The view has been reset so that the 'top' of the scrollable area is just above the last text field and the 'bottom' is way out in blackness
HELPFUL INFORMATIONCode:Ext.Loader.setConfig({ enabled: true }); Ext.application({ name: 'SenchaFiddle', launch: function() { Ext.Viewport.add(Ext.create('Ext.Panel', { fullscreen: true, scrollable: 'vertical', items: [{ xtype: 'textfield', placeHolder: 'text', minHeight: '400px' }, { xtype: 'textfield', placeHolder: 'text', minHeight: '400px' }, { xtype: 'textfield', placeHolder: 'text', minHeight: '400px' }] })); } });
Possible fix:- Looks like Sencha Touch uses -webkit-transform: translate3d to do its scrolling. Maybe this is incompatible with the 'scrolling' that the soft keyboard's 'Next' button does?
- only default sencha-touch.css
- iOS 5.1.1
-
7 Jul 2012 12:10 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,624
- Vote Rating
- 435
Thanks for the report.
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.
-
10 Jul 2012 8:49 AM #3Sencha - Sencha Touch Dev Team
- Join Date
- Mar 2007
- Location
- Redwood City, California
- Posts
- 3,652
- Vote Rating
- 14
This is why we don't use translate3d on Form panels...
Your scrollable configuration will need to be:
scrollable: {
translationMethod: 'scrollposition'
}
Though this will impact performance somewhat, it should resolve the scrolling issue. You can also use a Form panel instead which does this as well.
-
12 Jul 2012 3:27 PM #4
Well, that does fix the problem, but it has a weird side effect. When you first start scrolling after tapping 'Done' per the last step, it instantly jumps to the top of the panel then starts scrolling from there.
-
12 Jul 2012 3:30 PM #5
Also, we actually were using a Form Panel in our app, we just had
in our config which, unlikeCode:scrollable: 'vertical'
obliterates thisCode:scrollable: { direction: 'vertical' }setting. That would probably be a candidate for the docs.Code:translationMethod
-
24 Jul 2012 2:22 AM #6
This problem still occurs especially in horizontal view.
Quick fix, instead of:
Use:Code:scrollable: 'vertical'
Code:scrollable: { direction: 'vertical' },
Looks like we can't reproduce the issue or there's a problem in the test case provided.


Reply With Quote