Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-24443] Windows Phone: Progressbar not respect width and not resize

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionFixed
Resolution Date2019-03-05T20:17:28.000+0000
Affected Version/sRelease 7.5.0
Fix Version/sRelease 8.1.0
ComponentsWindows
Labelsn/a
ReporterSandro Lain
AssigneeKota Iguchi
Created2017-02-28T08:55:40.000+0000
Updated2019-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

FileDateSize
Schermata 2017-02-28 alle 09.43.04.png2017-02-28T08:51:30.000+000040283

Comments

  1. Kota Iguchi 2019-01-03

    https://github.com/appcelerator/titanium_mobile_windows/pull/1342
  2. Samir Mohammed 2019-03-04

    FR Passed, waiting on Jenkins.
  3. Kota Iguchi 2019-03-04

    Merged to master.
  4. Keerthi Mahalingam 2019-03-05

    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
       

JSON Source