WebFX WebBoard
Message Thread:
View All Messages
Back to WebFX
 DHTML4 menu sizing bug, Ed Schiebel, July 2, 2002
     Re:DHTML4 menu sizing bug, Jason Bernstein, July 24, 2002
             Re:menu4 bug with disabled RadioButtonMenuItems, Erik Arvidsson, July 4, 2002
                 Re:menu4 bug with disabled RadioButtonMenuItems, Ed Schiebel, July 15, 2002
                     Re:menu4 bug with disabled RadioButtonMenuItems, Erik Arvidsson, July 15, 2002

Subject: DHTML4 menu sizing bug From: Ed Schiebel Date: July 2, 2002

Before displaying a popup menu, you create an iframe, load the menu's html in the iframe's document, and then query the resulting docunent.body.scrollHeight and width.

I have found that in some cases, the iframe's document.readyState isn't "complete" for the first menu opened.  The menu's resulting popup window is the wrong size.

I fixed this bug by changing MenuItem.showSubMenu.  In the function being passed to window.setTimeout (sm._showTimer) I added a call to sm.getMeasureDocument().  This gets the document created, then its readyState completes while ie is back in its message pump.

--ed




Reply
Name: 
Email: 
Subject: 

Enter your reply to this message below. HTML tags are not supported but words that start with http://, ftp:// or mailto: are converted to links.


View All Messages
Back to WebFX