[TIMOB-11853] iOS: ActivityIndicator - Button click to change activity indicator message shifts the activity indicator and message to the left.
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Low |
Status | Closed |
Resolution | Duplicate |
Resolution Date | 2012-11-26T17:05:58.000+0000 |
Affected Version/s | Release 3.0.0 |
Fix Version/s | n/a |
Components | iOS |
Labels | qe-ios100112 |
Reporter | Anshu Mittal |
Assignee | Ingo Muschenetz |
Created | 2012-11-26T11:53:06.000+0000 |
Updated | 2017-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();
Marking as duplicate of linked issue
Closing ticket as duplicate.