I created a progress bar using NewProgressView but setting a progress value to 1 does not completely fill the bar. I suspect it is something to do with my image sheet and any insight would be appreciated.
Code:
local options = { width = 83, height = 45, numFrames = 6, sheetContentWidth = 500, sheetContentHeight = 45 } local progressSheet = graphics.newImageSheet( "images/widget-progress-view3.png", options ) local bar = widget.newProgressView( { sheet = progressSheet, fillOuterLeftFrame = 1, fillOuterMiddleFrame = 2, fillOuterRightFrame = 3, fillOuterWidth = 83, fillOuterHeight = 45, fillInnerLeftFrame = 4, fillInnerMiddleFrame = 5, fillInnerRightFrame = 6, fillWidth = 12, fillHeight = 45, left = someValue, top = someValue, width = 230, isAnimated = true } ) local progressValue = quantity / 100 bar:setProgress( progressValue )
Prints:
0.75 0.5 0.05 0.5 1
Attached what is displayed and the image sheet.