Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-6348] iOS: ProgressBar does not display correctly when 'top' is not set

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionCannot Reproduce
Resolution Date2017-05-24T21:12:37.000+0000
Affected Version/sRelease 1.7.5
Fix Version/sn/a
ComponentsiOS
Labelsn/a
ReporterArthur Evans
AssigneeIngo Muschenetz
Created2011-11-28T22:16:31.000+0000
Updated2017-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.

Comments

  1. Lee Morris 2017-05-24

    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

JSON Source