ProgressView bar breaks when try to extend its width

I am using a progress View widget but when I tried to extend its width to display.contentWidth or some of its multiple, it breaks and gives a weird look. 

Can someone suggest me how to prevent this.

My code is 

[lua]

progressView = widget.newProgressView

{

left = display.contentWidth * 0.4,

top =display.contentHeight * 0.95,

isAnimated = true,

}

progressView.isVisible = true

progressView.width = display.contentWidth * 0.65

[/lua]

Hi @ansaf,

Basically, the progressView widget isn’t meant to be resized post-creation. You can specify the width when you create it, but doing so afterward with “stretch” the entire object, which is giving you the weird appearance.

Brent

I have specified it inside the declaration but its not making any effect, its width remain as default. And when I tried to change it afterwards, it broke.

I just tried this and it works fine, on Build 1076 at least:

[lua]

local progressView = widget.newProgressView

{

left = display.contentWidth * 0.4,

top = display.contentHeight * 0.95,

isAnimated = true,

width = display.contentWidth * 0.65

}

[/lua]

Brent

Hi @ansaf,

Basically, the progressView widget isn’t meant to be resized post-creation. You can specify the width when you create it, but doing so afterward with “stretch” the entire object, which is giving you the weird appearance.

Brent

I have specified it inside the declaration but its not making any effect, its width remain as default. And when I tried to change it afterwards, it broke.

I just tried this and it works fine, on Build 1076 at least:

[lua]

local progressView = widget.newProgressView

{

left = display.contentWidth * 0.4,

top = display.contentHeight * 0.95,

isAnimated = true,

width = display.contentWidth * 0.65

}

[/lua]

Brent