[TIMOB-20282] Windows: ProgressBar default layout should be SIZE, not FILL
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | Medium |
| Status | Closed |
| Resolution | Fixed |
| Resolution Date | 2016-02-02T16:39:46.000+0000 |
| Affected Version/s | Release 5.1.0 |
| Fix Version/s | Release 5.3.0 |
| Components | Windows |
| Labels | layout, parity, qe-5.3.0 |
| Reporter | Kota Iguchi |
| Assignee | Kota Iguchi |
| Created | 2016-01-28T05:16:52.000+0000 |
| Updated | 2016-04-27T21:08:42.000+0000 |
Description
According to [Transitioning to the New UI Layout System](http://docs.appcelerator.com/platform/latest/#!/guide/Transitioning_to_the_New_UI_Layout_System), the default layout of
ProgressBar should be Ti.UI.SIZE, not Ti.UI.FILL. For instance following example should show green background only under the progress bar & text, and it should not fill parent view.
var pb = Ti.UI.createProgressBar({
min: 0,
max: 10,
value: 0,
color: 'blue',
backgroundColor: 'green',
backgroundDisabledColor: 'gray',
message: 'Downloading 0 of 10'
});
var win = Ti.UI.createWindow();
win.add(pb);
win.open();
pb.show();
Attachments
| File | Date | Size |
|---|---|---|
| pb_Fill_iOS.png | 2016-04-27T20:42:20.000+0000 | 26989 |
| pb_Fill_Windows.PNG | 2016-04-27T20:43:15.000+0000 | 18599 |
https://github.com/appcelerator/titanium_mobile_windows/pull/545