Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#10372 closed defect (wontfix)

BorderContainer with border in BorderContainer in hidden div - IE7 "Invalid Argument"

Reported by: Cheatah Owned by:
Priority: high Milestone: tbd
Component: Dijit Version: 1.3.2
Keywords: Cc:
Blocked By: Blocking:

Description

When using a BorderContainer? with a border inside another BorderContainer? and this is in a hidden div, IE7 throws a "Invalid argument" Exception.

This does not happen on Firefox, IE8 or Chrome.

See the attached testCase.

Attachments (1)

testCase.html (1.2 KB) - added by Cheatah 9 years ago.

Download all attachments as: .zip

Change History (4)

Changed 9 years ago by Cheatah

Attachment: testCase.html added

comment:1 Changed 9 years ago by bill

Resolution: wontfix
Status: newclosed

Thanks for the test case. But call startup() on a BorderContaine inside a hidden <div> isn't supposed to work; it has no way of doing sizing. IE throws an error whereas other browsers fail silently, but either way it doesnt' work.

comment:2 in reply to:  1 Changed 9 years ago by Cheatah

I have this set up in a page that requires some time to load properly, so I put my entire setup in a hidden div and I show the user a loading animation.

When the loading of the page is done, I display the hidden div and hide the preloader-animation. It works just fine in any other browser, but IE7 comes up with the "Invalid argument" error.

Right now I have a workaround that uses a visible div for the setup of the dojo application (which takes some time to load completely) and I display the preloader div on top of the other div (using z-index and absolute positioning). I don't like this workaround, but it's the only way to get it to work as far as I know.

Do you have any solution for this?

comment:3 Changed 9 years ago by bill

The standard way is to use visibility: hidden on the loading div, but that's essentially the same thing that you are doing. You could also position it off screen while it's rendering, etc.

Note: See TracTickets for help on using tickets.