Re: Internet Explorer Problem solved
Alex Russell <[email protected]> Mon, 14 Feb 2005 09:30:40 -0800
| Newsgroups | gmane.comp.windows.devel.netwindows |
|---|---|
| Organization | dojotoolkit.org |
| Message-ID | <[email protected]> |
=2D----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Wow. Thanks for tracking that down Christian!
I'm applying the patch to the tree widget in CVS.
Regards
On Sunday 13 February 2005 4:10 pm, Christian Boulanger (Bibliograph=20
Development) wrote:
> Hi Alex,
>
> I solved the IE display bug in the tree widget. It was not an alpha
> transparency problem after all. For some reason, IE adds a margin-top
> value which cannot be set to zero. Instead, one has to set a negative
> value to offset this stupidity.
>
> if you add "if(__is__.ie) marginTop =3D "-10px";" to the tree_widget
> code like so:
>
> tree_widget2.js , line 1169 :
>
> this.linkImgNode =3D document.createElement((this.isFolder ? "img":
> "span"));
> __util__.setClass(this.linkImgNode, "TreeNode-link-img");
> this.domNode.appendChild(this.linkImgNode);
> with(this.linkImgNode.style){
> border =3D top =3D margin =3D padding =3D "0px";
> marginRight =3D this.iconPad+"px";
> if(__is__.ie) marginTop =3D "-10px";
> }
>
> this.itemImgNode =3D document.createElement("img");
> __util__.setClass(this.itemImgNode, "TreeNode-item-img");
> this.domNode.appendChild(this.itemImgNode);
> with(this.itemImgNode.style){
> border =3D top =3D margin =3D padding =3D "0px";
> marginRight =3D this.iconPad+"px";
> if(__is__.ie) marginTop =3D "-10px";
> }
>
> it miraculously works. don't ask me why.
>
> Best,
>
> Christian
=2D --=20
Alex Russell
[email protected] BE03 E88D EABB 2116 CC49 8259 CF78 E242 59C3 9723
[email protected] F687 1964 1EF6 453E 9BD0 5148 A15D 1D43 AB92 9A46
=2D----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (Darwin)
iD8DBQFCEOBGz3jiQlnDlyMRAhsCAKCBkzAP11LmSN6Jf+ABy10erwfUkQCg5ABo
bUMuBQcha1OG4mGC6UTQIbE=3D
=3DKQ5i
=2D----END PGP SIGNATURE-----
_______________________________________________
The netWindows developers list: [email protected]
http://netwindows.org/mailman/listinfo/devel_netwindows.org