From e6e5fa3bf8853f149fdef16b39af3981097176a4 Mon Sep 17 00:00:00 2001 From: adrido Date: Mon, 9 Oct 2017 06:57:18 +0200 Subject: 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 --- builtin/mainmenu/tab_online.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'builtin') 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 -- cgit v1.2.3