[TIMOB-1902] iOS: Scrollview can scroll to much on ipad when keyboard is up
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2012-07-04T03:27:21.000+0000 |
Affected Version/s | Release 2.0.0 |
Fix Version/s | Release 1.5.0, Release 2.0.2, Release 2.1.0, Sprint 2012-07 |
Components | iOS |
Labels | SupportTeam, core, module_scrollview, qe-testadded |
Reporter | ctredway |
Assignee | Max Stepanov |
Created | 2011-04-15T03:05:07.000+0000 |
Updated | 2012-12-03T19:26:31.000+0000 |
Description
This can be recreated in KS Controls>Text Field>Border Style.
Does this only occur with the iPhone idiom? Going to test with iPhone idiom outside of Titanium to see if this is an Apple bug.
Also need to know your definition of "scroll too much" and how this differs from behavior on the iPhone. Screenshots are going to be required. iPhone idiom on iPad should present in the exact same manner as an iPhone, up to and including how many pixels are scrolled (relative to zoom, of course).
Ooops, should be assigned to Clint since he filed the ticket. Sorry Thom!
Problem only appears with text fields in scrollview or tableview. Going to add KS tests for these, and then fix.
(from [aa98abe4137a9d266102c7a6b83de9c52989fad0]) [#1902 state:fixed-in-qa] Scrollview is now resized on keyboard hide. Note that the lack of proper scroll animation appears to be an Apple bug. http://github.com/appcelerator/titanium_mobile/commit/aa98abe4137a9d266102c7a6b83de9c52989fad0"> http://github.com/appcelerator/titanium_mobile/commit/aa98abe4137a9...
mobile sdk build 1.5.0.62c1cae 3.2.2
This is still happening as of v2.0 CI http://screencast.com/t/86VNE2iOz https://gist.github.com/2209773 [code] var win1 = Titanium.UI.createWindow({ title:'Tab 1', backgroundColor:'#fff' }); var tf = Ti.UI.createTextField({ hintText: 'text field', borderStyle: Ti.UI.INPUT_BORDERSTYLE_ROUNDED, height: 35, width: 250 }); var scrollView = Ti.UI.createScrollView(); scrollView.add(tf); win1.add(scrollView); win1.open(); [code]
This is an issue with a customer app. more to come...
PR https://github.com/appcelerator/titanium_mobile/pull/1930 pending.
Fixed in master by PR 1930
Tested KS and attached test from Rick with 2.0.2.v20120514121649 on iPad 2 4.3.5
Reopening to update labels.
This is not fixed. Still happening on 2.1.4.GA
This is happening on iPhone. It seems I can get a temporary fix by calling tableView.setContentInsets({top: 0, bottom: 0, right: 0, left: 0}); on blur for all textFields and textAreas inside the tableView. Still not the best / expected behavior for this.
Ygor, I just tested 2.1.4 and 3.0.0.RC with different iPhone/iPad versions and was not able to reproduce the issue. Please confirm your steps and attach sample code.