Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-11852] iOS: ActivityIndicator - Button click to change activity indicator message shifts the activity indicator and message to the left.

GitHub Issuen/a
TypeBug
PriorityLow
StatusOpen
ResolutionUnresolved
Affected Version/sRelease 3.0.0, Release 3.1.0
Fix Version/sn/a
ComponentsiOS
Labelsqe-ios100112, reprod
ReporterAnshu Mittal
AssigneeUnknown
Created2012-11-26T11:50:13.000+0000
Updated2018-02-28T20:04:10.000+0000

Description

Button click to change activity indicator message shifts the activity indicator and message to the left such that activity indicator is not visible and message gets truncated. Steps to reproduce: 1. Create an app using the code below. 2. Launch the app. You'll see the activity indicator with a message. 3. Click the button 'text message2'. Expected: The message should get change but should be fully visible along with the activity indicator. Actual The activity indicator and message gets shifted to the left such that activity indicator is not visible and message gets truncated.
var win1 = Titanium.UI.createWindow({  
    title:'Tab 1',
    backgroundColor:'red',
  fullscreen:true
		 
});

var activityIndicator = Ti.UI.createActivityIndicator({
		    color : 'green',
		    font : {
		        fontFamily : 'Helvetica Neue',
		        fontSize : 26,
		        fontWeight : 'bold'
		    },
		    message : 'Loading...',
		    top : 0,
		    left : 0,
		    height: Ti.UI.SIZE,
		    width: Ti.UI.SIZE
		});
		
var b2_2 = Ti.UI.createButton({
		    title : "text message 2",
		    top : 100,
		    left : 10,
		    width : 100,
		    height : 70
		});
		b2_2.addEventListener("click", function() {
		    Ti.API.info("*********************** activityIndicator.message = " + activityIndicator.message);
		    activityIndicator.message = 'Continue loading ...';
		    Ti.API.info("*********************** activityIndicator.message = " + activityIndicator.message);
		});
		
		win1.add(activityIndicator);
		activityIndicator.show();
		
win1.add(b2_2);
win1.open();

Comments

  1. jithinpv 2013-03-26

    Issue reproduces Tested with Titanium Studio, build: 3.0.1.201212181159 Titanium SDK version: 3.1.0 (03/11/13 15:43 0c88429) Titanium SDK version: 3.0.2 (02/07/13 16:46 a4def81) iOS iPhone Simulator: iOS SDK version: 6.0
  2. Lee Morris 2017-05-24

    I have been able to reproduce this issue with the following environment; iPhone 7 (10.2) MacOS 10.11.6 (15G31) Studio 4.9.0.201705021158 Ti SDK 6.1.0.v20170519131839 Appc NPM 4.2.9 Appc CLI 6.2.1 Ti CLI 5.0.13 Alloy 1.9.11 Arrow 2.0.0 Xcode 8.2 (8C38) Node v4.8.2 Java 1.7.0_80

JSON Source