FLUID-3174: Progress demo would "feel" better if the progress amount was rounded to the nearest Integer

Metadata

Source
FLUID-3174
Type
Improvement
Priority
Minor
Status
Closed
Resolution
Fixed
Assignee
N/A
Reporter
Eli Cochran
Created
2009-09-14T18:07:57.000-0400
Updated
2014-03-03T14:24:20.567-0500
Versions
  1. 1.1.1
Fixed Versions
N/A
Component
  1. Progress

Description

When observing the Progress demo:
(http://build.fluidproject.org:8095/finalreport/infusion/src/webapp/demos/progress/demo.html)

The progress percentage sometimes jumps between a whole number and a number with decimal fraction. This is a bit jarring and the whole experience would be easier to read and more pleasing to watch if the percentages were rounded up or down before being displayed.

(I'm trying to decide if this should be a function of the Progress component itself, but I don't think so. The component just wants a percentage and there may be cases when passing in factional percentages are just fine. So it really should be changed in the demo only. We already do this rounding in the Uploader.)

Comments

  • Eli Cochran commented 2009-09-14T18:13:41.000-0400

    I offer up this humble patch FLUID-3174.a.patch to fix this lack of round-i-ness.

  • Jacob Farber commented 2009-09-17T10:12:03.000-0400

    Thanks for this. I applied the patch!

  • Eli Cochran commented 2009-09-17T13:48:59.000-0400

    Patch has been applied. Thanks Jacob!