[kovarex] [0.17.6] UI Description of the mod is outside parent window
Posted: Wed Mar 06, 2019 8:53 am
If list of dependencies is to long - description start showing outside mods window on scrolling down.
www.factorio.com
https://forums.factorio.com/
Code: Select all
function create_bug()
local frame = game.players[1].gui.center.add { type = "frame", name = "main_frame"}
frame.style.width = 400
frame.style.height = 250
local scroll = frame.add { type = "scroll-pane", name = "scroll"}
local scrol_2 = scroll.add{ type = "scroll-pane", name = "scrol_2"}
scrol_2.style.width = 350
local label = scrol_2.add{ type = "label", name = "label",caption = 'Created bug successfully'}
local frame_3 = scroll.add { type = "frame", name = "frame_3"}
scroll.frame_3.style.height = 500
end