- b2evolution CMS Support Forums
- b2evolution Development
- A look into the future
- Feature requests and Feedback
- Get rid of Textarea hack for IE6
1 sam2kb Feb 16, 2008 21:53
[url=http://fplanque.net/2003/Articles/iecsstextarea/index.html]As Francois wrote[/url] we need to put 1px image to fix IE6 "far east" bug. But the text is going "far east" with or without this hack anyway!
The code I'm talking about is in /inc/_core/ui/forms/_form.class.php lines 1922-1933
$r = $this->begin_field()
// NOTE: The following pixel is needed to avoid the dity IE textarea expansion bug
// see http://fplanque.net/2003/Articles/iecsstextarea/index.html
.'<img src="'.$rsc_url.'img/blank.gif" width="1" height="1" alt="" />'
.'<textarea'
.get_field_attribs_as_string( $field_params )
.' rows="'.$field_rows.'">'
.format_to_output( $field_value, 'formvalue' )
.'</textarea>'
// NOTE: this one is for compensating the previous pixel in case of center aligns.
.'<img src="'.$rsc_url.'img/blank.gif" width="1" height="1" alt="" />' .$this->end_field();
You can check these links with IE6
2.5.0 - http://b2evolution.net/news/2008/01/23/b2evo-2-4-0-venetian-released
1.10.2 - http://skins.b2evolution.net/index.php/2007/12/02/december
Why do I need it? My skin shows "Plain text only" text in msg form outside the form border because of this hack. And I have to hide these 1px images to fix the layout
div.input img { display:none }
BTW this textarea "far east" bug is fixed in IE7
P.S. Sorry if I'm wrong...