summaryrefslogtreecommitdiff
path: root/smarty_bit/block.textarea.php
diff options
context:
space:
mode:
authorNick Palmer <nick@sluggardy.net>2007-04-22 21:18:27 +0000
committerNick Palmer <nick@sluggardy.net>2007-04-22 21:18:27 +0000
commit1f1d8c6813a0f93e0f841a2967c191998004a05e (patch)
treec44b1ffca43034936cc6e6096e617bb8accd9982 /smarty_bit/block.textarea.php
parentd1766b0d913aa3ffa47cdf4c248ca37766cff24d (diff)
downloadkernel-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.php8
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