WebFX WebBoard
Message Thread:
View All Messages
Back to WebFX
 DHTML Menu Contextmenu only 10px width, Micha Schopman, February 12, 2003
     Re:DHTML Menu Contextmenu only 10px width, Micha Schopman, February 13, 2003
         Re:DHTML Menu Contextmenu only 10px width, Micha Schopman, February 13, 2003
             Re:DHTML Menu Contextmenu only 10px width, Micha Schopman, February 13, 2003
                 Fixed!, Micha Schopman, February 13, 2003
                     Re:Fixed!, Erik Arvidsson, February 13, 2003
                         Re:Fixed!, Micha Schopman, February 13, 2003
                             Re:Fixed!, Erik Arvidsson, February 13, 2003

Subject: Re:DHTML Menu Contextmenu only 10px width From: Micha Schopman Date: February 13, 2003

On line 515 the width is read for the popup, it seems it uses scrollWidth for this (correct?)...

I've created a bugfix for the width, which seems to work :o) It contains a conditional loop, which goes on until the width is bigger as 10px or when the counter hits 25 (to prevent me from using task manager to shutdown the frozen MSIE browser)

I still have problems with popups, thw width has been fixed, and now the height needs some attention. On moments the d.body.scrollWidth was not correct, the d.body.scrollHeight was also not correct, which causes the scroll buttons to appear in the menu :)

This starts at line 515:

 

// preferred width
 cs.preferredWidth = d.body.scrollWidth;
 
 i = 0;
 while (cs.preferredWidth <= 10){
 cs.preferredWidth = d.body.scrollWidth;
  if(i >= 25){
   break;
  }
  i++
 }

From: Micha Schopman
Sent: Feburary 13, 2003
Subject: Re:DHTML Menu Contextmenu only 10px width

I've did some testing and it seems this is definately some sort of width and height definition problem.

On lines 344, and 345 in menu4.js the this.popup.show is called. I placed a small alert on this place showing me what the width and height are for the popup.

Line 345: alert('w:'+w+' h:'+h);
Line 346: this.popup.show( left, top, w, h );

On moments the popup opens corrupt the w value in the popup indeed gives me an exact of 10px width. This is why the popup does not show correctly.

I'll try to go deeper in the big desert of code :P


 

From: Micha Schopman
Sent: Feburary 12, 2003
Subject: Re:DHTML Menu Contextmenu only 10px width

I have problems using the Contextmenu version of DHTML Menu. Just randomly it only opens about 10px of the leftside of the menu. The rest stays hidden. Once it opens completely but for most times it opens corrupt.

The problem only occures on all MSIE 6.0 (tested on the office on 9 workstations, and all have the same problem). The problem occures on both Win2K and WinXP. MSIE 5.0/5.5 opens the menu with no problems at all on Win2K and WinXP.

Is there a bugfix for this I did not notice?






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