From 1d07b6b25407a4e07a10fdcd5db5d2dfa311fb1a Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Fri, 14 Sep 2007 17:37:48 +0000 Subject: [PATCH] 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 --- forms/HtmlEditorField.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/forms/HtmlEditorField.php b/forms/HtmlEditorField.php index 48f0f06d1..f8b6fb103 100755 --- a/forms/HtmlEditorField.php +++ b/forms/HtmlEditorField.php @@ -60,8 +60,8 @@ class HtmlEditorField extends TextareaField { // We can't use htmlentities as that messes with unicode $cleanVal = str_replace(array("&","<",">"),array("&","<",">"),$cleanVal); - - $style = "width: 100%; height: " . ($this->rows * 16) . "px"; + // 97% instead of 100% to prevent horizontal scrollbars in IE7 + $style = "width: 97%; padding:0; margin:0; height: " . ($this->rows * 16) . "px"; $class = "htmleditor"; $class = ($this->extraClass)?$class." ".$this->extraClass:$class;