Formspec: textarea with scrollbar improvements

Increase scrollrate depending on fontsize

Scroll on mousewheel

Allow scrolling and marking text on non writable textareas

Update lua api about readonly mode

Show scrollbar if text overflows
This commit is contained in:
adrido 2017-10-09 06:57:18 +02:00 committed by Nils Dagsson Moskopp
parent a42d4efd0d
commit a06be5551d
Signed by: erle
GPG Key ID: A3BC671C35191080
1 changed files with 2 additions and 2 deletions

View File

@ -61,8 +61,8 @@ local function get_formspec(tabview, name, tabdata)
fgettext("Del. Favorite") .. "]" fgettext("Del. Favorite") .. "]"
end end
if fav_selected.description then if fav_selected.description then
retval = retval .. "textarea[8.1,2.3;4.23,2.9;;" .. retval = retval .. "textarea[8.1,2.3;4.23,2.9;;;" ..
core.formspec_escape((gamedata.serverdescription or ""), true) .. ";]" core.formspec_escape((gamedata.serverdescription or ""), true) .. "]"
end end
end end