#35676 [NEW]: CSS overflow disappears unless error reporting is triggered
| From: | jhala at uoregon dot edu | Date: | Thu, 15 Dec 2005 07:57:59 +0000 |
| Subject: | #35676 [NEW]: CSS overflow disappears unless error reporting is triggered | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-90452@lists.php.net to get a copy of this message | ||
From: jhala at uoregon dot edu
Operating system: Windows Server 2003
PHP version: 5.1.1
PHP Bug Type: Unknown/Other Function
Bug description: CSS overflow disappears unless error reporting is triggered
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.
--
Edit bug report at http://bugs.php.net/?id=35676&edit=1
--
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=35676&r=trysnapshot44
Try a CVS snapshot (PHP 5.1): http://bugs.php.net/fix.php?id=35676&r=trysnapshot51
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=35676&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=35676&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=35676&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=35676&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=35676&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=35676&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=35676&r=support
Expected behavior: http://bugs.php.net/fix.php?id=35676&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=35676&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=35676&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=35676&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=35676&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=35676&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=35676&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=35676&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=35676&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=35676&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=35676&r=mysqlcfg