Titanium JIRA Archive
Appcelerator Community (AC)

[AC-2470] updateLayout do not work on Android

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionNeeds more info
Resolution Date2013-01-25T18:27:01.000+0000
Affected Version/sn/a
Fix Version/sn/a
Componentsn/a
Labelsn/a
ReporterQuang Pham
AssigneeMostafizur Rahman
Created2012-10-04T04:41:30.000+0000
Updated2016-03-08T07:41:31.000+0000

Description

view.updateLayout({top:50, left:50}); app crash when do this

Comments

  1. Daniel Sefton 2012-11-19

    Hi Quang, I will re-open the issue once the following has been provided: - Crash log - A reproducible test case - Android version, emulator and/or device It would also speed things up if you tried it on 2.1.3 GA/2.1.4 GA (Help -> Check for Titanium SDK Updates, change SDK in tiapp.xml). Thanks!
  2. Daniel Sefton 2013-01-25

    I've set this to resolved so that the issue can now be edited to provide more info. We appreciate your time in helping to improve our platform. Thanks, Daniel
  3. Mostafizur Rahman 2013-12-09

    Hello, We tested this issue with the test code below. We can’t reproduce this issue in Ti SDK 3.1.3.GA. It is most likely fixed. Please test this issue using the latest release and let us know your feedback.

    Testing Environment:

    Ti CLI 3.1.2 Titanium SDK: 3.1.3 and later Titanium SDK 3.1.3 GA Android SDK: 2.3.3 iOS -Simulator -iPhone Retina 3.5 inch/iOS 7.0.3 Android Device-4.2.2 h5. Test Case
       Titanium.UI.setBackgroundColor('#000');
        
       var win1 = Titanium.UI.createWindow({  
           title:'Tab 1',
           backgroundColor:'#fff'
       });
        
        
       var view = Titanium.UI.createView({	
       	 backgroundColor:'red',
       	 width:10,
       	 height:10
       	
       });
        
        
       var press = Ti.UI.createButton({
       	title : 'press',
       	height : 'auto',
       	width : 'auto',
       });
         
       press.addEventListener('click', function() {
       	view.updateLayout({top:200, left:200});
       });
        
       view.top = 50;
       view.left = 50;
        
       win1.add(press);
       win1.add(view);
       win1.open();
       

    Steps to Reproduce:

    Create a simple project.

    Update this code in app.js

    Run this with testing environment

    App will display red view and button

    Click on button for updateLayout effect

    View position will update

    Thanks
  4. Quang Pham 2013-12-09

    I think this bug was fixed. Thanks you :)
  5. Shak Hossain 2013-12-09

    Closing as per test results and updated remark from Quang.

JSON Source