diff --git a/code/game/machinery/vending.dm b/code/game/machinery/vending.dm index 1ac341db260..8e87506803b 100644 --- a/code/game/machinery/vending.dm +++ b/code/game/machinery/vending.dm @@ -447,7 +447,7 @@ /obj/machinery/vending/tgui_interact(mob/user, ui_key = "main", datum/tgui/ui = null, force_open = TRUE, datum/tgui/master_ui = null, datum/tgui_state/state = GLOB.tgui_default_state) ui = SStgui.try_update_ui(user, src, ui_key, ui, force_open) if(!ui) - var/estimated_height = 100 + (length(product_records) * 34) + var/estimated_height = 100 + min(length(product_records) * 34, 500) if(length(prices) > 0) estimated_height += 100 // to account for the "current user" interface ui = new(user, src, ui_key, "Vending", name, 470, estimated_height, master_ui, state)