locked
IE8 style.height limited to 1342177px RRS feed

  • Question

  • It seems that IE8 has style.height limited to 1342177 pixels.
    Setting bigger value has no effect.
    Am I missing something or it is a "feature" of IE8 ?









    The issue can be reconstructed with next sample code




    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
        <head>
        </head>
        <body>
            <div id="some"> </div>
            <script>
                var some=document.getElementById("some")
                some.style.height="9123456px";
                alert("row height 9123456="+some.style.height);
            </script>
        </body>
    </html>
    Friday, March 20, 2009 9:27 AM

All replies

  • How did you even find that..... surely you have no reason for one element to ever be that large?

    Friday, March 20, 2009 1:42 PM
  • Unfortunately I have reason :(
    It used as filler for big data table ( more than 70 000  records ) , while I agree that it is definitely not the best way of data presentation, limiting height value doesn't look as correct behavior.

    All versions prior IE8 RC was able to process big height values correctly.
    Friday, March 20, 2009 6:30 PM
  • Oh right i see :)

    Well i guess you could just overflow the div to create a scroll bar but that is kinder pointless in your case....

    How about you split it into two divs may be? not sure as to why its limited to that height :(
    Friday, March 20, 2009 6:33 PM