1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Fix scrollbar on ContentDB grid by adding an area label (#16042)

Co-authored-by: rubenwardy <rw@rubenwardy.com>
This commit is contained in:
grorp 2025-04-21 06:33:41 -04:00 committed by GitHub
parent 5c6e4d35b0
commit 0cf1c47f6c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 108 additions and 60 deletions

View file

@ -2842,6 +2842,9 @@ Version History
* Add field_enter_after_edit[] (experimental)
* Formspec version 8 (5.10.0)
* scroll_container[]: content padding parameter
* Formspec version 9 (5.12.0)
* Add allow_close[]
* label[]: Add "area label" variant
Elements
--------
@ -3154,9 +3157,11 @@ Elements
### `textarea[<X>,<Y>;<W>,<H>;<name>;<label>;<default>]`
* Same as fields above, but with multi-line input
* Text is wrapped to fit within the given bounds.
* If the text overflows, a vertical scrollbar is added.
* If the name is empty, the textarea is read-only and
the background is not shown, which corresponds to a multi-line label.
See also `label[<X>,<Y>;<W>,<H>;<label>]` for an alternative.
### `label[<X>,<Y>;<label>]`
@ -3171,6 +3176,16 @@ Elements
half a coordinate. With the old system, newlines are spaced 2/5 of
an inventory slot.
### `label[<X>,<Y>;<W>,<H>;<label>]`
* The "area label" formspec element displays the text set in `label`
at the specified position and size.
* Text is wrapped to fit within the given bounds.
* If the text overflows, it is currently simply truncated, but this behavior is
subject to change. There is no scrollbar.
* See also `textarea` for an alternative.
* Only available with the new coordinate system.
### `hypertext[<X>,<Y>;<W>,<H>;<name>;<text>]`
* Displays a static formatted text with hyperlinks.
* **Note**: This element is currently unstable and subject to change.