Home: htmlArea 2: htmlArea 2 & 3 archive (read only): htmlArea v2.0 - Add-Ons:
Context Menus in Tables Mods Bug Fixed



Luis
Veteran

Apr 10, 2003, 2:44 AM


Views: 5407
Context Menus in Tables Mods Bug Fixed

I tried many things usuccessfully to prevent the context menu to show up under the pull downs, but I succeded in this:

I replaced:

// set vertical position
if (mouseY + 5 + cMenuH > pageH) { var top = mouseY - cMenuH + 5; } // too far down
else { var top = mouseY + 5; }

with:

// set vertical position
if (mouseY + 5 + cMenuH > pageH) { var top = mouseY - cMenuH + 180; } // too far down
else { var top = mouseY + 5; }

Increasing this value, the context menu will always show up below the pulldowns. The most items you add to the menu, the bigger you need to increase the value.


http://www.webstationone.com/test/htmlarea/index.html


Don't give up!!
http://webstationone.com/test/htmlarea


(This post was edited by Luis on Apr 10, 2003, 3:04 AM)