hi, why not using prototype cross-browser document.viewport methods ? document.viewport.getHeight()
On 13 fév, 14:32, bill <will...@techservsys.com> wrote: > On 2/13/2010 8:05 AM, Alex McAuley wrote:> you dont need the quote before > hand ... > > $('leftPane').style.height = '' + ((.99 *ah)-20 ) + 'px'; //<<<<this > > is line 16 > > into > > $('leftPane').style.height = Math.round(( ( .99 * ah ) -20 )) + > > 'px'; //<<<<this is line 16 > > I thought the quotes were needed to force the argument to be a string. > But, it doesn't like your suggestion any better. I still get "invalid > argument" > > It is having trouble with this line: > > var ah = window.innerHeight ; > > I guess innerHeight is not accepted by IE8 > > so I switched to screen.availHeight - 30; and it works, although it is > not quite the same thing, at least it works > > -- > Bill Drescher > william {at} TechServSys {dot} com -- You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" group. To post to this group, send email to prototype-scriptacul...@googlegroups.com. To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en.