Coolmenus not changing on window resize
Pallavi Nagboth <pnagboth-/[email protected]> Tue, 15 Apr 2008 16:37:19 -0700 (PDT)
| Newsgroups | gmane.comp.java.struts-menu.user |
|---|---|
| Message-ID | <[email protected]> |
--===============1337416488==
Content-Type: multipart/alternative; boundary="0-1761493888-1208302639=:48174"
Content-Transfer-Encoding: 7bit
--0-1761493888-1208302639=:48174
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable
Hi,
=20
We are using Struts-menus 2.4.3 We calculate the left position for th=
e menus in this way:
<script>
function getMenuLeftPosition(){=20
var docWidth =3D parseInt(document.body.clientWidth);
return (docWidth-465);
}
</script>
In the coolmenu4-config.js we have the following:
oCMenu3=3Dnew makeCM("oCMenu3") //Making the menu object. Argument: men=
uname
oCMenu3.frames =3D 0
//Menu properties =20
oCMenu3.pxBetween=3D0
oCMenu3.fromLeft=3DgetMenuLeftPosition()
oCMenu3.fromTop=3D21 =20
oCMenu3.rows=3D1=20
oCMenu3.menuPlacement=3D"left"
=20
oCMenu3.offlineRoot=3D""=20
oCMenu3.onlineRoot=3D""=20
oCMenu3.resizeCheck=3D1=20
oCMenu3.wait=3D200=20
oCMenu3.fillImg=3D"../image/cm_fill.gif"
oCMenu3.zIndex=3D400
oCMenu3.pagecheck=3D0
oCMenu3.checkscroll=3D0
//Background bar properties
oCMenu3.useBar=3D0
oCMenu3.barWidth=3D"15%"
oCMenu3.barHeight=3D"menu"=20
oCMenu3.barClass=3D"clBar"
oCMenu3.barX=3D250
oCMenu3.barY=3D0
oCMenu3.barBorderX=3D0
oCMenu3.barBorderY=3D0
oCMenu3.barBorderClass=3D""
=20
When we resize the window, menus are still displayed in the old positio=
n i.e. they are NOT rendered according to the new body width even though =
the resizeCheck is set to 1. Any solutions?
=20
Thanks in advance,
--Pallavi
between 0000-00-00 and 9999-99-99 <hr size=3D1>Be a better friend,=
newshound, and know-it-all with Yahoo! Mobile. <a href=3D"http://us.rd.y=
ahoo.com/evt=3D51733/*http://mobile.yahoo.com/;_ylt=3DAhu06i62sR8HDtDypao=
8Wcj9tAcJ "> Try it now.</a>
--0-1761493888-1208302639=:48174
Content-Type: text/html; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable
<div>Hi,</div> <div> </div> <div> We are using Struts-menus =
2.4.3 We calculate the left position for the menus in this way:</div> <d=
iv><script></div> <div>function getMenuLeftPosition(){ </div>=
<div>var docWidth =3D parseInt(<STRONG><FONT color=3D#407f00>document.b=
ody.clientWidth</FONT></STRONG>);<BR> return=
(docWidth-465);<BR> }<BR></script><BR>In the coolmenu4-=
config.js we have the following:</div> <div>oCMenu3=3Dnew makeCM("oCMenu=
3") //Making the menu object. Argument: menuname</div> <div>oCMenu3.fram=
es =3D 0</div> <div>//Menu properties <BR>oCMenu3.pxBetween=3D=
0<BR>oCMenu3.fromLeft=3D<STRONG><FONT color=3D#407f00>getMenuLeftPosition=
()<BR></FONT></STRONG>oCMenu3.fromTop=3D21 <BR>oCMenu3.rows=3D1
<BR>oCMenu3.menuPlacement=3D"left"<BR> &nbs=
p;  =
; =
&=
nbsp; &n=
bsp; <BR>oCMenu3.offlineRoot=3D"" <BR>oCMen=
u3.onlineRoot=3D"" <BR><STRONG><FONT color=3D#407f00>oCMenu3.resizeCheck=3D=
1 <BR></FONT></STRONG>oCMenu3.wait=3D200 <BR>oCMenu3.fillImg=3D"../image/=
cm_fill.gif"<BR>oCMenu3.zIndex=3D400<BR>oCMenu3.pagecheck=3D0<BR>oCMenu3.=
checkscroll=3D0</div> <div>//Background bar properties<BR>oCMenu3.useBar=
=3D0<BR>oCMenu3.barWidth=3D"15%"<BR>oCMenu3.barHeight=3D"menu" <BR>oCMenu=
3.barClass=3D"clBar"<BR>oCMenu3.barX=3D250<BR>oCMenu3.barY=3D0<BR>oCMenu3=
.barBorderX=3D0<BR>oCMenu3.barBorderY=3D0<BR>oCMenu3.barBorderClass=3D""<=
/div> <div> </div> <div>When we resize the window, menus are still
displayed in the old position i.e. they are <STRONG><FONT color=3D#407f0=
0>NOT</FONT></STRONG> rendered according to the new body width even thoug=
h the resizeCheck is set to 1. Any solutions?</div> <div> </div> <=
div>Thanks in advance,</div> <div>--Pallavi</div><p> 
between 0000-00-00 and 9999-99-99=20
<hr size=3D1>Be a better friend, newshound, and=20
know-it-all with Yahoo! Mobile. <a href=3D"http://us.rd.yahoo.com=
/evt=3D51733/*http://mobile.yahoo.com/;_ylt=3DAhu06i62sR8HDtDypao8Wcj9tAc=
J "> Try it now.</a>
--0-1761493888-1208302639=:48174--
--===============1337416488==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
--===============1337416488==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
struts-menu-user mailing list
struts-menu-user-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/struts-menu-user
--===============1337416488==--