From 67fe9ef5334743caee884d1ab3e291059217cd0b Mon Sep 17 00:00:00 2001 From: PHIDIAS Date: Thu, 28 Sep 2023 00:38:13 +0900 Subject: [PATCH] width --- modules/gui/surveillance.lua | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/modules/gui/surveillance.lua b/modules/gui/surveillance.lua index 8743b475..3f1c25cf 100644 --- a/modules/gui/surveillance.lua +++ b/modules/gui/surveillance.lua @@ -25,14 +25,14 @@ Gui.element(function(event_trigger, parent) selected_index = 1 } - scroll_table_1.add{ + local s = scroll_table_1.add{ type = 'drop-down', name = 'cctv_display_' .. i .. 's', items = {'Player', 'Static'}, selected_index = 1 } - scroll_table_1.add{ + local e = scroll_table_1.add{ type = 'drop-down', name = 'cctv_display_' .. i .. 'e', items = {'Enable', 'Disable'}, @@ -60,9 +60,11 @@ Gui.element(function(event_trigger, parent) style = 'button' } - l.style.maximal_width = 48 - a.style.maximal_width = 36 - b.style.maximal_width = 36 + s.style.width = 96 + e.style.width = 96 + l.style.width = 48 + a.style.width = 36 + b.style.width = 36 local scroll_table_2 = Gui.scroll_table(container, 400, 1, 'cctv_st_' .. i .. '2') container['cctv_st_' .. i .. '2'].vertical_scroll_policy = 'never'