elofgren: Change width of 'HtmlEditorField? textareas' from 100% to 97% to prevent horizontal scrollbars at 1024x768 using IE7. (merged from branches/gsoc)

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@41773 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Ingo Schommer 2007-09-14 17:37:48 +00:00
parent c6a0bf260a
commit 1d07b6b254

View File

@ -60,8 +60,8 @@ class HtmlEditorField extends TextareaField {
// We can't use htmlentities as that messes with unicode // We can't use htmlentities as that messes with unicode
$cleanVal = str_replace(array("&","<",">"),array("&amp;","&lt;","&gt;"),$cleanVal); $cleanVal = str_replace(array("&","<",">"),array("&amp;","&lt;","&gt;"),$cleanVal);
// 97% instead of 100% to prevent horizontal scrollbars in IE7
$style = "width: 100%; height: " . ($this->rows * 16) . "px"; $style = "width: 97%; padding:0; margin:0; height: " . ($this->rows * 16) . "px";
$class = "htmleditor"; $class = "htmleditor";
$class = ($this->extraClass)?$class." ".$this->extraClass:$class; $class = ($this->extraClass)?$class." ".$this->extraClass:$class;