From kfm-devel Sat Dec 29 23:24:43 2001 From: Date: Sat, 29 Dec 2001 23:24:43 +0000 To: kfm-devel Subject: Re: JS view of widths of table cells X-MARC-Message: https://marc.info/?l=kfm-devel&m=100966843415560 On Fri, 28 Dec 2001, Dirk Mueller wrote: > On Fre, 28 Dez 2001, koos.vriezen@xs4all.nl wrote: > > > width of the generated cells. Iterating the column head widths and > > generating an extra row with an image of 1x1 pixel and setting it to the > > width of the column head, I can guarantee columns are aligned well. > > I am probably the only one to do such a thing :-) > > Ah, interesting. But why don't you use the JS properties that are supposed > to return the actual width? I think offsetwidth is what you're looking for, > we implemented it in that way. Thanks, that seems to work. > Not sure if the other browsers would support that this way though. Mozilla does, will try IE wednesday at work (http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/reference/properties/offsetwidth.asp suggests it does). Regards, Koos Vriezen