? 507696-resizable-field.patch
Index: wysiwyg.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/wysiwyg/wysiwyg.module,v
retrieving revision 1.33.2.11
diff -u -p -r1.33.2.11 wysiwyg.module
--- wysiwyg.module	14 Feb 2010 01:59:47 -0000	1.33.2.11
+++ wysiwyg.module	23 Jun 2010 00:44:35 -0000
@@ -170,6 +170,10 @@ function wysiwyg_process_form(&$form) {
               // Check editor theme (and reset it if not/no longer available).
               $theme = wysiwyg_get_editor_themes($profile, (isset($profile->settings['theme']) ? $profile->settings['theme'] : ''));
 
+              // Rough estimate of textarea height in pixels:
+              // 40 for the toolbar, 29 for the first row, and 15 for the rest.
+              $profile->settings['height'] = $field['#rows'] ? 40 + 29 + 15 * ($field['#rows'] - 1) : 400;
+              
               // Add plugin settings (first) for this input format.
               wysiwyg_add_plugin_settings($profile);
               // Add profile settings for this input format.
Index: editors/ckeditor.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/wysiwyg/editors/ckeditor.inc,v
retrieving revision 1.2.6.6
diff -u -p -r1.2.6.6 ckeditor.inc
--- editors/ckeditor.inc	2 Apr 2010 14:05:54 -0000	1.2.6.6
+++ editors/ckeditor.inc	23 Jun 2010 00:44:36 -0000
@@ -130,7 +130,7 @@ function wysiwyg_ckeditor_settings($edit
     'width' => '100%',
     // For better compatibility with smaller textareas.
     'resize_minWidth' => 450,
-    'height' => 420,
+    'height' => isset($config['height']) ? $config['height'] : 400,
     // @todo Do not use skins as themes and add separate skin handling.
     'theme' => 'default',
     'skin' => !empty($theme) ? $theme : 'kama',
Index: editors/fckeditor.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/wysiwyg/editors/fckeditor.inc,v
retrieving revision 1.17.2.3
diff -u -p -r1.17.2.3 fckeditor.inc
--- editors/fckeditor.inc	2 Apr 2010 14:05:54 -0000	1.17.2.3
+++ editors/fckeditor.inc	23 Jun 2010 00:44:36 -0000
@@ -103,7 +103,7 @@ function wysiwyg_fckeditor_settings($edi
     'SkinPath' => base_path() . $editor['library path'] . '/editor/skins/' . $theme . '/',
     'CustomConfigurationsPath' => base_path() . drupal_get_path('module', 'wysiwyg') . '/editors/js/fckeditor.config.js',
     'Width' => '100%',
-    'Height' => 420,
+    'Height' => isset($config['height']) ? $config['height'] : '400',
     'LinkBrowser' => FALSE,
     'LinkUpload' => FALSE,
     'ImageBrowser' => FALSE,
Index: editors/tinymce.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/wysiwyg/editors/tinymce.inc,v
retrieving revision 1.35.2.4
diff -u -p -r1.35.2.4 tinymce.inc
--- editors/tinymce.inc	2 Apr 2010 14:05:54 -0000	1.35.2.4
+++ editors/tinymce.inc	23 Jun 2010 00:44:36 -0000
@@ -149,6 +149,7 @@ function wysiwyg_tinymce_settings($edito
     'plugins' => array(),
     'theme' => $theme,
     'width' => '100%',
+    'height' => isset($config['height']) ? $config['height'] : '400',
     // Strict loading mode must be enabled; otherwise TinyMCE would use
     // document.write() in IE and Chrome.
     'strict_loading_mode' => TRUE,
