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'