Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

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

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionDuplicate
Resolution Date2012-11-26T17:05:58.000+0000
Affected Version/sRelease 3.0.0
Fix Version/sn/a
ComponentsiOS
Labelsqe-ios100112
ReporterAnshu Mittal
AssigneeIngo Muschenetz
Created2012-11-26T11:53:06.000+0000
Updated2017-03-20T22:48:44.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. Ingo Muschenetz 2012-11-26

    Marking as duplicate of linked issue
  2. Lee Morris 2017-03-20

    Closing ticket as duplicate.

JSON Source