Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-23283] Windows: ProgressBar Ti.UI.FILL does not display the bar correctly

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2016-05-12T15:49:05.000+0000
Affected Version/sRelease 5.3.0
Fix Version/sRelease 5.4.0
ComponentsWindows
Labelsqe-5.3.0, qe-5.4.0
ReporterHarry Bryant
AssigneeKota Iguchi
Created2016-04-27T21:06:14.000+0000
Updated2016-06-28T21:49:37.000+0000

Description

Setting the ProgressBar width property to Ti.UI.FILL does not display the same behaviour on Windows Phone, as it does on iOS / Android. *This affects both device & emulator.*

TEST CODE:

var pb = Ti.UI.createProgressBar({
    min: 0,
    max: 10,
    value: 0,
    color: 'blue',
    backgroundColor: 'green',
    backgroundDisabledColor: 'gray',
    message: 'Downloading 0 of 10',
    width: Ti.UI.FILL
});
var win = Ti.UI.createWindow();
win.add(pb);
win.open();
pb.show();

Steps to Reproduce

1. Create a classic mobile application. 2. Apply test code to app.js file. 3. Deploy app to Windows 10 phone device / emualator. 4. Launch app

Actual Result

_see windows phone screenshot_ Progress Bar is aligned to the left, and does not fill the width of the window.

Expected Result

_see iPhone screenshot_ Progress Bar should fill the entire width of the window.

Attachments

FileDateSize
pb_Fill_iOS.png2016-04-27T21:07:16.000+000026989
pb_Fill_Windows.PNG2016-04-27T21:03:53.000+000018599

Comments

  1. Kota Iguchi 2016-05-12

    https://github.com/appcelerator/titanium_mobile_windows/pull/683
  2. Harry Bryant 2016-06-28

    Verified as fixed, ProgressBar Ti.UI.FILL now correctly stretches to fit the entire screen, both Vertically and Horizontally. Tested on: Windows 10 Pro Windows Phone 10.0 (Microsoft Lumia 640 LTE) Appc Studio: 4.7.0.201606220541 Ti SDK: 5.4.0.v20160627224205 Appc NPM: 4.2.7-2 Appc Core: 5.4.0-20 Node: v4.4.4 *Closing Ticket.*

JSON Source