[TIMOB-6348] iOS: ProgressBar does not display correctly when 'top' is not set
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Low |
Status | Closed |
Resolution | Cannot Reproduce |
Resolution Date | 2017-05-24T21:12:37.000+0000 |
Affected Version/s | Release 1.7.5 |
Fix Version/s | n/a |
Components | iOS |
Labels | n/a |
Reporter | Arthur Evans |
Assignee | Ingo Muschenetz |
Created | 2011-11-28T22:16:31.000+0000 |
Updated | 2017-05-24T21:12:37.000+0000 |
Description
For some reason, when the 'top' property is not set up a progress bar, the progress is always displayed as 100%.
This was reported as a doc error, (TIMOB-5809) but I believe this part of the bug is an iOS bug. This behavior does not occur on Android.
To reproduce, use the following code in app.js:
var win1 = Titanium.UI.createWindow({
title : 'Progress Bar Test',
backgroundColor : '#fff'
});
var pb = Titanium.UI.createProgressBar({
// top: 10,
width : 250,
height : 50,
min : 0,
max : 10,
value : 5,
color : '#fff',
message : 'Downloading 0 of 10',
font : {
fontSize : 14,
fontWeight : 'bold'
},
style : Titanium.UI.iPhone.ProgressBarStyle.PLAIN,
});
win1.add(pb);
pb.show();
win1.open();
When run on iOS, the progress bar shows up as 100% done. If you uncomment the "top: 10" line and re-run, the progress bar shows up with the proper value--50% done.
Closing this ticket as the issue cannot be reproduced 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