[0.17.76] gui table ignores colum count if it has fewer elements than columns
Posted: Mon Nov 11, 2019 2:02 pm
Example Snippet:
Example Picture:
This breaks formatting for tables with dynamic content:
Code: Select all
/c game.player.gui.screen.clear()
--[[a]]
local s = game.player.gui.screen.add{type='frame',caption='3 col, 2 elm'}.add{type='table',column_count=3}
s.style.width = 1000
for i=1,2 do s.add{type='frame',caption='test'} end
--[[b]]
local s = game.player.gui.screen.add{type='frame',caption='2 col, 2 elm'}.add{type='table',column_count=2}
s.style.width = 1000
for i=1,2 do s.add{type='frame',caption='test'} end
--[[c]]
local s = game.player.gui.screen.add{type='frame',caption='3 col, 3 elm'}.add{type='table',column_count=3}
s.style.width = 1000
for i=1,3 do s.add{type='frame',caption='test'} end
This breaks formatting for tables with dynamic content: