Closed Bug 1208681 Opened 10 years ago Closed 10 years ago

[CompatData][Importer] Green section on status bar is sometimes missing

Categories

(developer.mozilla.org Graveyard :: General, defect)

All
Other
defect
Not set
minor

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: jwhitlock, Unassigned)

References

Details

(Whiteboard: [specification][type:bug])

What did you do? ================ 1. Go to https://browsercompat.herokuapp.com/importer/ 2. Filter by topics until the green bar disappears What happened? ============== The green bar disappears What should have happened? ========================== The green bar should always be present Is there anything else we should know? ====================================== It is using bootstrap's progress meter. When rounding causes the total length of the individual bars to exceed 100%, then the last bar disappears. The code needs to round down the percent of the green bar so that the total of all bars is 100% or less.
Blocks: 1181140
Severity: normal → minor
Commits pushed to master at https://github.com/mdn/browsercompat https://github.com/mdn/browsercompat/commit/7c1a1a2164cfb3ec0ee19d7917891416448f2e82 fix bug 1208681 - Round down page percentages When regular rounding is used, sometimes the combined percentage is above 100% and the browser omits the final status bar (the green one!). This rounds the percentage down to the nearest 0.1%, which can leave unused space at the end, but doesn't omit any bars. https://github.com/mdn/browsercompat/commit/f228fc93a113cd41917316f56e6499a0fdf5ec01 Merge pull request #60 from mdn/always_green_1208681 fix bug 1208681 - Round down page percentages
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Product: developer.mozilla.org → developer.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.