Titanium JIRA Archive
Appcelerator Community (AC)

[AC-1769] 2.1.3.GA breaks label removal on Android

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionCannot Reproduce
Resolution Date2013-12-30T05:19:49.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsTitanium SDK & CLI
Labelsn/a
ReporterKT
AssigneeShak Hossain
Created2012-10-11T01:29:52.000+0000
Updated2016-03-08T07:40:39.000+0000

Description

win.remove(Ti.UI.Label) leaves the border of the label stranded onscreen afterward. This new in 2.1.3. Reverting to 2.1.2 fixes it.

Comments

  1. Daniel Sefton 2012-11-28

    Please provide a reproducible test case for this, then it will be re-opened. 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. Thanks, Daniel
  3. Mostafizur Rahman 2013-12-08

    We tried to reproduce the issue with a sample test case and were not able to reproduce it with Titanium SDK 3.1.3GA. Please test this issue using the latest release and let us know your feedback. If you continue to get any error, please update this ticket with your test case so that we can review. If we don't hear back, we will assume the issue is resolved and we will close the ticket.

    Test Environment:

    OS: MAC OS X 10.8.5 Ti SDK: 3.2.0.x, 3.1.3.GA Ti CLI: 3.3.0 Android Device Android SDK 2.3.3, 4.2.2

    Test Code

       var win = Ti.UI.createWindow({
       	backgroundColor : '#fff',
       	layout : 'vertical',
       
       });
       
       var label = Ti.UI.createLabel({
       	text : 'label',
       	color : '#fff',
       	textAlign : 'center',
       	top : 20,
       	borderColor : 'red',
       	borderWidth : '5',
       	borderRadius : 5,
       	width : 200,
       	height : 100,
       });
       
       win.add(label);
       
       var button = Ti.UI.createButton({
       	title : 'Button',
       	top : 29,
       });
       
       button.addEventListener('click', function() {
       	win.remove(label);
       });
       
       win.add(button);
       
       win.open();
       

    Step to reproduces

    Create a new project

    Paste test code in app.js

    Now run on Android Device

    click on button for removing label from window

    Result

    Label will removed successfully form window
  4. Shak Hossain 2013-12-28

    Not reproducible in 3.2GA. Closing this.

JSON Source