From 5de1db527cdf9565bbd5cea18e83f7170d71bf56 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 5 Nov 2011 22:20:02 +0100 Subject: [PATCH] Fix: Autocalculate rows and cols --- htdocs/core/class/doleditor.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/core/class/doleditor.class.php b/htdocs/core/class/doleditor.class.php index 1e89c73ef71..706067e1ace 100644 --- a/htdocs/core/class/doleditor.class.php +++ b/htdocs/core/class/doleditor.class.php @@ -68,8 +68,8 @@ class DolEditor dol_syslog("DolEditor::DolEditor htmlname=".$htmlname." tool=".$tool); - if (! $rows) $rows=round($height/25); - if (! $cols) $rows=round($height/6); + if (! $rows) $rows=round($height/20); + if (! $cols) $cols=($width?round($width/6):80); // Name of extended editor to use (FCKEDITOR_EDITORNAME can be 'ckeditor' or 'fckeditor') $defaulteditor='ckeditor';