Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-14568] Android: Setting "transform" to null leaves UI artifacts

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionCannot Reproduce
Resolution Date2020-01-09T22:13:51.000+0000
Affected Version/sRelease 3.1.1
Fix Version/sn/a
ComponentsAndroid
Labelsparity
ReporterTony Lukasavage
AssigneeUnknown
Created2013-07-16T20:45:45.000+0000
Updated2020-01-09T22:13:51.000+0000

Description

problem

When setting the *transform* property of a proxy to *null* it leaves UI artifacts (as shown in attached screenshot) on Android. This does not occur on iOS or Mobileweb.

expected

When I set the the *transform* property of a proxy to *null*, I expect the transform to be reset to the identity transform and that there are no UI artifacts of the previous transform left behind.

test case

app.js

var win = Ti.UI.createWindow({
	backgroundColor: '#fff',
	modal: false,
	exitOnClose: true
});
var label = Ti.UI.createLabel({
	text: 'just a test label',
	transform: Ti.UI.create2DMatrix().rotate(45)
});
label.addEventListener('click', function(e) {
	label.transform = null; // must be set to Ti.UI.create2DMatrix() to work around on Android
});

win.add(label);
win.open();

Attachments

FileDateSize
Screen Shot 2013-07-16 at 4.45.26 PM.png2013-07-16T20:46:11.000+000015561

Comments

  1. Biju pm 2013-07-22

    The issue cannot reproduce with the release master 3.2.0 Tested with: Titanium SDK version: 3.2.0 Tested on Device: Samsung galaxy s duos Android version: 4.0.4
  2. Tony Lukasavage 2013-07-22

    [~bijuexalture] Can you reproduce the issue using TiSDK 3.1.1? If you can reproduce with 3.1.1, but not 3.2.0, I'll be satisfied that the issue has been addressed.

JSON Source