Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-11023] iOS: Different reaction of ScrollView in iOS 5.0 and 5.1

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2012-10-10T00:37:40.000+0000
Affected Version/sRelease 2.1.2, Release 2.1.3, Release 3.0.0
Fix Version/sRelease 2.1.3, Release 3.0.0, Sprint 2012-20 API, 2012 Sprint 20
ComponentsiOS
Labelsapi, module_scrollview, qe-testadded, regression
ReporterLuciano Damiani
AssigneeVishal Duggal
Created2012-09-18T22:25:35.000+0000
Updated2013-08-30T09:52:23.000+0000

Description

I have a simple Login window with one view and inside the view two textfields that represent Email and Password, when the first textField get focus the keyboard show up and move the view right the position of the bottom of the field on the top of keyboard, it happens perfect on both of the textFields but when I press return on the last textField the view doesn't come back to original position, if I use IOS SDK 4.3 it works perfect. Any help...

Attachments

FileDateSize
app.js2012-09-18T22:25:35.000+00002507

Comments

  1. Daniel Sefton 2012-09-20

    Tested and confirmed on iOS SDK 5.1, TiSDK 2.1.2.v20120814184610, 2.1.2.GA, 2.1.3 and 3.0.0 - the view is NOT returned to its original position on return of the second textfield. Tested on iOS SDK 5.1 with TiSDK 2.0.3.v20120806151610, and it works as expected - the view is returned to its original position on return of the second textfield. So the problem was introduced between 2.0.3.v20120806151610 (Aug 6) and 2.1.2.v20120814184610 (Aug 14).
  2. Ping Wang 2012-09-26

    The regression is caused by this commit https://github.com/appcelerator/titanium_mobile/commit/76527b32e028ec2e316c8c2edf709ddb949087bb
  3. Tamila Smolich 2012-09-27

    Adding a code:
       var win = Ti.UI.createWindow({
           backgroundColor:'white'
       });
        
        var formboxLeft = Ti.UI.createView({
         
       });
        
       var field = Ti.UI.createTextField({
          hintText: 'password',
          color:'#666',
          width:'94%',
          bottom: 20,
          width: '50%',
          height: 20,
          borderRadius:0, 
          borderStyle:Titanium.UI.INPUT_BORDERSTYLE_BEZEL,
          passwordMask: true
       });
        
       var scroll = Ti.UI.createScrollView({
          
       });
        
       scroll.add(field);
       formboxLeft.add(scroll);
       win.add(formboxLeft);
       win.open();
       
  4. Sabil Rahim 2012-09-28

    MASTER PR https://github.com/appcelerator/titanium_mobile/pull/3073 2_1_X PR https://github.com/appcelerator/titanium_mobile/pull/3075
  5. Tamila Smolich 2012-09-28

    Closing as fixed. Verified on: Titanium Studio, build: 2.1.2.201208301612 Titanium SDK, build: 2.1.3.v20120928124610; 3.0.0.v20120927181348 Device: iPhone 4 (5.1.1), iPhone Simulator (6.0)
  6. Ingo Muschenetz 2012-10-10

    Had to reopen to change estimate.

JSON Source