svn path=/Website/trunk/; revision=69917
This commit is contained in:
2025-08-05 12:48:13 +00:00
parent d85da81c76
commit efd9ca10f5
3 changed files with 4 additions and 2 deletions

View File

@@ -35,7 +35,7 @@ a {
textarea.form-control {
--fclt-textarea-padding-x: 0.75rem;
--fclt-textarea-padding-y: 0.375rem;
--textarea-height-lines: 4;
--textarea-height-lines: 2;
padding: var(--fclt-textarea-padding-y) var(--fclt-textarea-padding-x); /* = ook bootstrap default, maar nu vastgelegd */
line-height: var(--bs-body-line-height);
min-height: calc( 2 * var(--bs-border-width)

View File

@@ -758,7 +758,7 @@ function RWFIELD_HTML(pId, plabel, pvalue, params)
pvalue = shared.stripbbcodes(pvalue);
vinput = (params.multi
? (params.disabled || params.readonly // readonly vooralsnog als DIV omdat textarea geen autogrow heeft
? (params.disabled
? safe.fclthtml(pvalue)
: "<textarea " + vinputattr + ">" + safe.textarea(pvalue) + "</textarea>"
)

View File

@@ -228,6 +228,8 @@ $(function() {
var $longpressables = $bulkables; // Kan worden uitgebreid
addLongPressEventHandler($longpressables);
$("textarea").autogrow();
});
function toggleRows() {