Re: Fw: Malpositioned dropdown menus

Philippe Vollenweider <[email protected]>
Newsgroups gmane.comp.cms.jahia.template
Message-ID <[email protected]>
Hello,

I have the same problems with things like this:

div.wrapper {
     left: 50%;
     position: absolute;
     clear: both;
}
div.main {
     position:absolute;
     width:700px;
     left: -350px;
}

and the page is like

<body>
<div class="wrapper">
     <div class="main">
         here is my page.
     </div>
</div>
</body>

Is it the same kind of problem you have?

I think that the methodes getPageOffsetLeft and getPageOffsetTop (file 
action.js) return the wrong value. So you will need correct them by 
substracting the PageOffset (top or left) of the element.offsetParent.

For me it works with Firefox but not with IE :-(

If you find another solution, please contribute it.

Cheers,

Philippe.

At 01.12.2004 11:49, you wrote:
>Hello!
>Didn't get any suggestions from dev-list so I'll try here.
>
>Thx,
>Christian
>
>----- Forwarded by Christian Karlsson/Integration/Generic on 2004-12-01
>11:48 -----
>
>[email protected] wrote on 2004-11-10 12:57:03:
>
> > Hello all
> > I'm having problems with positioning of the dropdown menus.
> > The getX and getY methods don't seem to be working any more. They did
>until
> > I changed the design into a CSS-based layout. Now all the menus appear in
> > the same spot in Win/Mozilla and slightly misplaced in Win/IE. So it
>works
> > better in IE but I've had to make some hacks with absolute positioning to
> > make CSS work there. Are the getX and getY methods dependant on a table
> > oriented design or on an absolutely positioned design?
> > The site is at http://192.68.102.165/jahia.
> >
> > Thanks,
> > Christian
> >

-------=[ pvollenweider at jahia dot com ]=---------
Jahia : A collaborative source CMS and Portal Server
www.jahia.org Community and product web site
www.jahia.com Commercial services company
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.