Opened 10 years ago

Closed 9 years ago

#9536 closed defect (fixed)

Progressbar with maximum=0 fails in IE

Reported by: PhilippC Owned by: bill
Priority: low Milestone: 1.7
Component: Dijit Version: 1.3.0
Keywords: progressbar, ie, maximum Cc:
Blocked By: Blocking:

Description

Internet Explorer fails to render dijit's Progressbar with progress=maximum=0. In FF and Webkit this works, but IE produces a Javascript error in ProgressBar?'s update() method (line: tip.style.width = (percent * 100) + "%";) because percent is NaN.

One might argue that maximum=0 is not a useful/valid value for displaying a progress, but I am using Progressbar to display the required/available space for a user. Some users have "0 space" available, which means that progress=maximum=0. (I have my custom report() method that displays "0/0" as string inside the Progressbar).

In this case I would be glad to see this fixed.

Change History (8)

comment:1 Changed 10 years ago by Adam Peller

Owner: set to Adam Peller
Priority: normallow

comment:2 Changed 10 years ago by bill

Milestone: 1.41.5

Passed cutoff for non-regression bug fixes

comment:3 Changed 10 years ago by Adam Peller

Milestone: 1.51.6

comment:4 Changed 9 years ago by Adam Peller

Owner: Adam Peller deleted

assigning all Dijit bugs to Bill

comment:5 Changed 9 years ago by bill

Milestone: 1.61.7

comment:6 Changed 9 years ago by Chris Mitchell

bill

comment:7 Changed 9 years ago by Chris Mitchell

Owner: set to bill

comment:8 Changed 9 years ago by bill

Resolution: fixed
Status: newclosed

(In [24833]) avoid divide by zero exception on IE when maximum is 0, fixes #9536 !strict

Note: See TracTickets for help on using tickets.