Opened 15 years ago

Closed 15 years ago

#2785 closed defect (wontfix)

Background of ModalFloatingPane has incorrect z-index if multiple ModalFloatingPanes are opened

Reported by: guest Owned by: dante
Priority: high Milestone:
Component: Dojox Version: 0.4.2
Keywords: Cc: [email protected]
Blocked By: Blocking:


An application creates a pair ModalFloatingPanes? named pane1 and pane2. Pane1 is then caused to be shown. At this point in time, pane1 is shown and the base application is greyed out correctly. While pane1 is shown, pane2 is caused to be shown. At this point in time pane2 is shown and the rest of the application including pane1 is greyed out.

This so far is the expected behavior.

If one then causes pane2 to be hidden, pane1 will still be greyed out with the rest of the application.

The problem seems to be that when a ModalFloatingPane? is shown a recalculation is done of the z-index of all of the ModalFloatingPanes?. However, the z-index is only recalculated for the background div of the ModalFloatingPane? that is actually shown. This causes the ModalFloatingPane? behind it to have a lower z-index than it's background div.

The code in error is in dojo.widget.FloatingPane?.js:

dojo.widget.defineWidget("dojo.widget.ModalFloatingPane?", ...

show:function () { this.showModalDialog(); dojo.widget.ModalFloatingPane?, arguments); = - 1;


A fix that seems to work is to replace the highlighted line with:

var modalFloatingPanes = dojo.widget.manager.getWidgetsByType(this.widgetType); for (var x = 0; x < modalFloatingPanes.length; x++) {

modalFloatingPanes[x] =

modalFloatingPanes[x] - 1;


I will attach a sample HTML file that demonstrates the problem.

Attachments (1)

ModalFloatingPaneBug.html (3.7 KB) - added by guest 15 years ago.
A self contained example showing the problem

Download all attachments as: .zip

Change History (5)

Changed 15 years ago by guest

Attachment: ModalFloatingPaneBug.html added

A self contained example showing the problem

comment:1 Changed 15 years ago by guest

I seem to have forgotten to sign the defect report.

Shmuel Kallner
IBM Labs in Haifa, Israel
[email protected]

comment:2 Changed 15 years ago by Adam Peller

Component: GeneralDojox
Owner: changed from anonymous to dante

comment:3 Changed 15 years ago by dante

Status: newassigned

comment:4 Changed 15 years ago by dante

Resolution: wontfix
Status: assignedclosed

promise to make sure this is not an issue in 0.9/1.0 FloatingPane?.

welcome reopening with a patch to back port if community desire is great.

Note: See TracTickets for help on using tickets.