From: adrido Date: Mon, 9 Oct 2017 04:57:18 +0000 (+0200) Subject: Formspec: textarea with scrollbar improvements X-Git-Tag: 5.0.0~783 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=e6e5fa3bf8853f149fdef16b39af3981097176a4;p=oweals%2Fminetest.git 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 --- diff --git a/builtin/mainmenu/tab_online.lua b/builtin/mainmenu/tab_online.lua index 90228b110..b387d9556 100644 --- a/builtin/mainmenu/tab_online.lua +++ b/builtin/mainmenu/tab_online.lua @@ -61,8 +61,8 @@ local function get_formspec(tabview, name, tabdata) fgettext("Del. Favorite") .. "]" end if fav_selected.description then - retval = retval .. "textarea[8.1,2.3;4.23,2.9;;" .. - core.formspec_escape((gamedata.serverdescription or ""), true) .. ";]" + retval = retval .. "textarea[8.1,2.3;4.23,2.9;;;" .. + core.formspec_escape((gamedata.serverdescription or ""), true) .. "]" end end diff --git a/doc/lua_api.txt b/doc/lua_api.txt index c29abdf9c..703e81436 100644 --- a/doc/lua_api.txt +++ b/doc/lua_api.txt @@ -1918,9 +1918,10 @@ examples. * if is false, pressing enter in the field will submit the form but not close it * defaults to true when not specified (ie: no tag for a field) -#### `textarea[,;,;;