[opencms-dev] Context Menu js Fix for IE
Andras Balogh
andras at reea.net
Mon May 10 17:19:01 CEST 2004
Hello all,
We had a problem with Backoffice Modules (all modules in general),
List section in case of the number of items was too big to fit in
screen and scrollbar appeared in
Internet Explorer, the Context Menu (Lock,Edit,Delete) was not
appearing beside the item we
were trying to work on but much more above.
In case of somebody is interested (i saw is not fixed in CVS head also)
here is the fix for the problem:
Edit file: /system/workplace/scripts/opencms_kontextmenu.js
and modify the js function mouseClicked:
// mouse coordinates on click
function mouseClicked(e)
{
if (ie)
{
x=event.x; y=event.y;
//add this for count in the scrollbar also
if(document.body.scrollTop>0)
{
y=y+document.body.scrollTop+220;
}
}
....
The value 220 seems to work fine if not working on your environment you
should
try to adjust it.
Best wishes,
Andras.
More information about the opencms-dev
mailing list