Hi again. Thanks again, this worked perfectly.
The strange thing is that the docs over at visual docs says that $('div').height() will return 'nnpx', where as I was only getting nn. Getting it as just nn, is great as I can just add the new height, but I don't know what other browsers are going to give me. Gordon. Shawn Tumey wrote: > On 9/2/06, *Gordon Heydon* <[EMAIL PROTECTED] > <mailto:[EMAIL PROTECTED]>> wrote: > > Hi, > > I have implemented a page where I have jQuery cloning the last row and > extending the table, > > I have the table that I am extending in a div which I use the jq-corners > to make it look pretty. > > The problem that I am getting is that when the table is extending that > page isn't. So what happens is that stuff starts disappearing of the > bottom of the page. > > I don't think I have all the information for someone to help me, so > please bear with me and I will provide any information required. > > If someone can help get the page to extend at the same rate as the > table, I would appreciated it alot. > > Thanks in advance. > Gordon. > > > Gordon, > > Basically what you need to do is extend the height of the div to match > the growing height of the table. > > Without seeing a test case, I don't know if (a) the div has room to grow > before it needs to be expanded, or if (b) the first time you clone a > row, the div needs expanded. > > If (a) is true then loop through the height of all the elements with the > div as their parent adding up their heights (totalChildrenHeight). if > totalChildrenHeight > div height, then get the difference and expand the > div accordingly. Note - you may have to make concessions for padding and > margins. > > if (b) add the height of the row to the height of the div. > > Hope this helps. :) > > Regards, > > > -- > Shawn Tumey > Cofounder > MT Web Productions LLC !DSPAM:1000,44f99a7c109411804284693! > > > ------------------------------------------------------------------------ > > _______________________________________________ > jQuery mailing list > discuss@jquery.com > http://jquery.com/discuss/ > > > !DSPAM:1000,44f99a7c109411804284693! _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/