|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-12-15 09:16 UTC] alan_k@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Dec 15 22:00:02 2025 UTC |
Description: ------------ I have a span tag in a table cell that is setup with: style="width:382; height:200; overflow:scroll;" It was displaying as expected in IE 6.029... while I had E_ALL set in php.ini AND I had at least one "Notice" or other error displaying at the top of the page. When I addressed the "Notice"-related problem or set error reporting to E_ERROR, the scrollbars would disappear. The "Notice" in particular that I observed was any improperly defined variable, including variables I made up just to trigger the notice that didn't have any impact on the rest of the code. I tried to make the scrollbar appear by echoing or printing text from the <? ?> section preceding the <html> tag (thinking perhaps it was some wierd positioning issue or something) but this did not have the same effect. Reproduce code: --------------- <? if( $testtest == 1 ) { print( "hyah" ); } ?> <html><body style="margin:0;"> <form method="post" action="url.html"> <table width="756" border="3" frame="void" align="left" cellpadding="0" cellspacing="0" style="margin:0;"> <tr><td align="left" valign="top"> <table border="3" frame="void" cellpadding="0" cellspacing="0" style="margin:0px"> <tr><td width="371" height="167" align="left"> <textarea cols="58" rows="10">test</textarea> </td> <td valign="top" width="382" height="200" rowspan="3"> <span style="width:382; height:200; overflow:scroll;"> </span></td></td><tr><td align="right" height="24"> <input type="hidden" name="dummy" value="1" /> <input type="submit" name="Submit" value="Submit" /> </td></tr><tr><td></td></tr> <table></td></tr></table></form></body></html> Expected result: ---------------- I should be able to clear up all notices and other warning messages and still have the overflow scrollbars display correctly. I have it set to "scroll" instead of "auto" for troubleshooting purposes, but it ought to work correctly with "auto" as well. Actual result: -------------- The reproduce code box will contain the minimal relevant HTML and CSS code that I used to hopefully recreate the situation. Commenting out the PHP "if" statement OR turning error reporting off should make the scrollbars disappear, otherwise they should be there.