mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
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:
parent
c6a0bf260a
commit
1d07b6b254
@ -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("&","<",">"),$cleanVal);
|
$cleanVal = str_replace(array("&","<",">"),array("&","<",">"),$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;
|
||||||
|
Loading…
Reference in New Issue
Block a user