Using height property in MSIE, breaks

0 views
Skip to first unread message

Jossi

unread,
Aug 20, 2008, 6:30:15 PM8/20/08
to ModalBox
When I set the height porperty and load the page in MSIE, the
container of Modalbox gets all screwed up. If I remove the height
param, it works OK, but as the page diplayes is a rather long page,
there is no way for users to scroll.

Any ideas?

Justinas Urbanavicius

unread,
Aug 21, 2008, 1:12:41 AM8/21/08
to moda...@googlegroups.com
the scroll bar should appear when you specify the fixed height. about the screwing up part, everything should be normal, if you could post a link where we could see your example maybe we could help you  more.

Jossi

unread,
Oct 6, 2008, 11:02:27 PM10/6/08
to ModalBox
Fixed this by changing line 307 from this:

this.MBcontent.setStyle({overflow: 'auto', height: $
(this.MBwindow).getHeight() - $(this.MBheader).getHeight() - 13 +
'px'});

to this:
this.MBcontent.setStyle({overflow: 'scroll', height: $
(this.MBwindow).getHeight() - $(this.MBheader).getHeight() - 13 +
'px'});

It seems that MSIE has trouble with "auto" overflow.

-- Jossi
Reply all
Reply to author
Forward
0 new messages