From 8ba921bb07d5f4e74b3e6e12e36bbba792679ebf Mon Sep 17 00:00:00 2001
From: BuckarooBanzay <BuckarooBanzay@users.noreply.github.com>
Date: Thu, 23 Jul 2020 20:33:15 +0200
Subject: [PATCH] poi formspec fixes

---
 poi.lua | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/poi.lua b/poi.lua
index 2da0a96..9ff0341 100644
--- a/poi.lua
+++ b/poi.lua
@@ -9,16 +9,16 @@ local update_formspec = function(meta)
 
 	meta:set_string("infotext", "POI, name:" .. name .. ", icon:" .. icon)
 
-	meta:set_string("formspec", "size[8,5;]" ..
+	meta:set_string("formspec", "size[8,4;]" ..
 		-- col 1
-		"field[0,1;4,1;name;Name;" .. name .. "]" ..
-		"button_exit[4,1;4,1;save;Save]" ..
+		"field[0.2,1;4,1;name;Name;" .. name .. "]" ..
+		"field[4.2,1;4,1;icon;Icon;" .. icon .. "]" ..
 
 		-- col 2
-		"field[0,2.5;4,1;icon;Icon;" .. icon .. "]" ..
+		"field[0.2,2;8,1;url;URL;" .. url .. "]" ..
 
 		-- col 3
-		"field[0,3.5;8,1;url;URL;" .. url .. "]" ..
+		"button_exit[0,3;8,1;save;Save]" ..
 		"")
 
 end
-- 
GitLab