Commit 8daceb1e authored by Carsten  Rose's avatar Carsten Rose
Browse files

Fixes #7682. Improve doc.

parent 60e6deff
Pipeline #2312 passed with stages
in 2 minutes and 40 seconds
......@@ -3267,17 +3267,17 @@ Type: text
* *FormElement.size* = [<width>[,<min height>[,<max height>]]]
* The 'size' parameter might have 0-3 parameter.
* If 0-2 parameter are given, the height is s
* If 3 parameter are given, the `auto height` mode is activated: the height is dynamically calculated, with respect to
* If 0-2 parameter are given, the height is static.
* If 3 parameter are given, the `auto height` mode is activated and the height is dynamically calculated, with respect to
given min/max height.
* Width measured in characters, height measured in lines.
* If only the width is given (no min/max height), the height becomes automatically '1'.
* If only the width is given, the height becomes automatically '1'.
* In general, the *visible* width of an input element is defined by the Bootstrap column width (and *not* the width given
here). The width value here only has an impact on calculating the final height in the `auto height` mode.
* The dynamic Bootstrap width of the shown textarea element makes it hard to calculate the real needed height. The
implementation is only a 'best guess'.
* `<width>,<min height>`: with a `<min height>` > 1 the input element is of type 'textarea'.
* `<width>,<min height>,<max height>`: input element = textarea, width=`<width>`, height=`counting lines of current value`.
* `<width>,<min height>`: with a `<min height>` > 1 the form element is of type 'textarea' (else 'input').
* `<width>,<min height>,<max height>`: height=`counting lines of current value`.
If a line is longer than `<width>`, the height of the line counts as `length(<line>) / <width> + 1` lines. The height
is never less than `<min height>` or greater than `<max height>`.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment