WebFX WebBoard
Message Thread:
View All Messages
Back to WebFX
 Re: possible bug in menu 4.2, Erik Arvidsson, November 22, 2002
     Re: possible bug in menu 4.2, Winfield, November 23, 2002
         Re: possible bug in menu 4.2, Erik Arvidsson, November 23, 2002
             Re: possible bug in menu 4.2, Erik Arvidsson, November 23, 2002

Subject: Re: possible bug in menu 4.2 From: Winfield Date: November 23, 2002

Okay, sorry for the crappy formatting. It's probably just something I'm doing wrong, but I breakpointed the positionSubMenu function and it never gets called, whether I use cssFile or cssText. I can't get a context menu to scroll at all (without changing the src.)

-winfield

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title></title>
<script type="text/javascript" src="/js/poslib.js"></script>
<script type="text/javascript" src="/js/scrollbutton.js"></script>
<script type="text/javascript" src="/js/menu4.js"></script>
<link type="text/css" rel="StyleSheet" href="/winclassic.css" />
</head>
<body oncontextmenu="showTallMenu()"></body>

<script>

function showTallMenu() {
// Menu.prototype.cssText = document.styleSheets[0].cssText;
 Menu.prototype.cssFile = "/winclassic.css";
 var menu = new Menu();
 for (var i=0; i < 80; i++) {
  menu.add(new MenuItem("Test","test"));
 }
 menu.show(window.event.screenX,window.event.screenY);
 window.event.returnValue = false;
}

</script>

</html>