diff options
| author | Nick Palmer <nick@sluggardy.net> | 2007-04-22 21:18:27 +0000 |
|---|---|---|
| committer | Nick Palmer <nick@sluggardy.net> | 2007-04-22 21:18:27 +0000 |
| commit | 1f1d8c6813a0f93e0f841a2967c191998004a05e (patch) | |
| tree | c44b1ffca43034936cc6e6096e617bb8accd9982 /smarty_bit/block.textarea.php | |
| parent | d1766b0d913aa3ffa47cdf4c248ca37766cff24d (diff) | |
| download | kernel-1f1d8c6813a0f93e0f841a2967c191998004a05e.tar.gz kernel-1f1d8c6813a0f93e0f841a2967c191998004a05e.tar.bz2 kernel-1f1d8c6813a0f93e0f841a2967c191998004a05e.zip | |
Handle rows and cols in a standards compliant way.
Diffstat (limited to 'smarty_bit/block.textarea.php')
| -rw-r--r-- | smarty_bit/block.textarea.php | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/smarty_bit/block.textarea.php b/smarty_bit/block.textarea.php index 1942840..eb6bc17 100644 --- a/smarty_bit/block.textarea.php +++ b/smarty_bit/block.textarea.php @@ -44,13 +44,17 @@ function smarty_block_textarea( $pParams, $pContent, &$gBitSmarty ) { break; } } - $style .= (empty($style) ? '' : ';').'height:'.$pParams['rows'].'em;'.'width:'.$pParams['cols'].'em;'; + // We control hieght here when bnspell is on so as to be able to not + // lose the rest of the style on the textarea. + if ($gBitSystem->isPackageActive('bnspell')) { + $style .= (empty($style) ? '' : ';').'height:'.$pParams['rows'].'em;'; + } $gBitSmarty->assign('textarea_attributes', $attributes); $gBitSmarty->assign('textarea_data', $pContent); if (!empty($style)) { $gBitSmarty->assign('textarea_style', 'style="'.$style.'"'); } - + $ret = $gBitSmarty->fetch("bitpackage:liberty/edit_textarea.tpl"); // Restore gContent |
