Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-11287] iOS: Label blinks momentarily when changing text if the label position is not specified

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2014-02-11T21:56:43.000+0000
Affected Version/sRelease 2.1.2, Release 2.1.3, Release 3.1.0
Fix Version/sRelease 3.2.0
ComponentsiOS
Labelslabel, qe-closed-3.2.2, qe-testadded, supportTeam
ReporterNikhil Sharma
AssigneeIngo Muschenetz
Created2012-10-06T01:00:56.000+0000
Updated2014-06-19T12:44:30.000+0000

Description

When you change the text of the label it blinks a bit. It doesn't change smoothly.

Repo case

1. Run the below code in your app.js 2. Click on the text of the label and you can see it.
var win = Ti.UI.createWindow({
	backgroundColor : 'red'
});
var self = Ti.UI.createView();

var label = Ti.UI.createLabel({
	text : "Small"
});
self.add(label);

label.addEventListener("click", function(e) {
	label.text = label.text == "Small" ? "Much longer" : "Small";
});
win.add(self);

win.open();

Comments

  1. Shameer Jan 2013-03-25

    the problem exist with release 3.1.0, It doesn't change smoothly. Titanium Studio, build: 3.0.2.201302191606 Titanium SDK version: 3.1.0 Titanium SDK version: 3.0.2 iOS iPhone Simulator: iOS SDK version: 6.0
  2. Shak Hossain 2014-02-11

    This issue can't be reproduced with TISDK 3.2 or higher. Therefore, marking it as resolved.
  3. Neha Mittal 2014-03-10

    Issue is not reproducible anymore using below environment so closing as fixed Environment: Appc Studio: 3.2.2.201402280732 Sdk: 3.2.2.v20140221161255 and 3.2.1.GA acs: 1.0.14 npm: 1.3.2 alloy:1.3.1 titanium:3.2.1 titanium-code-processor:1.1.0 Xcode: 5.1-beta5 Osx: Maverick(10.9.2) Device: iPhone 5S (iOS 7.1)

JSON Source