Forum Moderators: open

Message Too Old, No Replies

Resize Browser Window to Table

Expanding things the other way around

         

Josefu

1:19 pm on Apr 25, 2006 (gmt 0)

10+ Year Member



First off, thanks in advance for any and all help in this.

I'm quite familiar with the ability to resize a window to fit the size of an image (and the web abounds with examples), but I would like to resize a normally fixed-size popup window to match the size of the (normally) 100%w x 100%h table it contains - it may be that sometimes the table's content will force it to expand past the borders of the window holding it, and I would like to account for this possibility. Would this be possible, and if so, could someone please point me in the right direction?

Josefu

9:29 am on Apr 28, 2006 (gmt 0)

10+ Year Member



I seem to be on the road to discovering the solution to my problem myself - although the goings' been problematic indeed. I've been trying the getElementsById 'offsetHeight' parameter - with odd results, as the height of the table I tried it on gave a result of '13' - until I started trying it on <td>'s. Bizarrely this technique will return only the height sum of all the tables/objects it contains unless one of those objets is set to a 100% height (yet this is done through css?) - I now have a working result that varies with the size of the window, and I have only to implement it, but I am still a bit puzzled about the why and how of it all. Is there any clear explanation for this?