[TIMOB-24443] Windows Phone: Progressbar not respect width and not resize
| GitHub Issue | n/a |
| Type | Bug |
| Priority | Critical |
| Status | Closed |
| Resolution | Fixed |
| Resolution Date | 2019-03-05T20:17:28.000+0000 |
| Affected Version/s | Release 7.5.0 |
| Fix Version/s | Release 8.1.0 |
| Components | Windows |
| Labels | n/a |
| Reporter | Sandro Lain |
| Assignee | Kota Iguchi |
| Created | 2017-02-28T08:55:40.000+0000 |
| Updated | 2019-03-05T20:17:28.000+0000 |
Description
Given the width of the progressbar is not respected.
It is used the width of the "message" text as initial width and then is retained even if the text is updated with a longer one, making truncate the label displayed.
{noformat}
var win = Ti.UI.createWindow();
var prog = Ti.UI.createProgressBar({
top: 50,
width: 240,
min: 0,
max: 100,
value: 0,
color: '#FFFFFF',
message: 'Progress Label'
});
win.add(prog);
var vv = Ti.UI.createView({
width: 240,
top: 100,
height: 10,
backgroundColor: "#FFF",
});
win.add(vv);
var val = 0;
win.addEventListener('open', function()
{
setInterval(function()
{
val++;
var lbl = 'Progress Label: ' + val + '%';
prog.message = lbl;
prog.value = val;
}, 500);
});
win.open();
{noformat}
Attachments
https://github.com/appcelerator/titanium_mobile_windows/pull/1342
FR Passed, waiting on Jenkins.
Merged to master.
Verified the fix on SDK 8.1.0.v20190304181927. Progress bar works fine.closing.
Name = Microsoft Windows 10 Pro Version = 10.0.17763 Architecture = 64bit # CPUs = 4 Memory = 17034395648 Node.js Node.js Version = 8.9.1 npm Version = 5.5.1 Titanium CLI CLI Version = 5.1.1 Titanium SDK SDK Version = 8.1.0.v20190304181927 SDK Path = C:\ProgramData\Titanium\mobilesdk\win32\8.1.0.v20190304181927 Target Platform = windows device =Lumia 650 dula sim Emulator=mobile emulator10.0