[2.0.49] Table background gets "stuck" when destroying all children at once
Posted: Thu May 15, 2025 1:20 pm
/storage/Projects/factorio/bugreports/stucktables/1. initial state.png
Here we have table with several rows. It uses odd_row_graphical_set to display an alternating background. The +Item and +Fluid buttons are not part of the table.
/storage/Projects/factorio/bugreports/stucktables/2. after some rows destroyed.png
If we destroy some of the rows, then the background will successfully resize.
/storage/Projects/factorio/bugreports/stucktables/3. after all rows destroyed.png
If we instead destroy all of the rows, then the background will not be updated. The table here has a height of zero according to the inspector, but the old background is still visible.
/storage/Projects/factorio/bugreports/stucktables/4. after save and load.png
Notably, if we save and then load the game without closing the GUI, the background is drawn correctly. Maybe this is useful for figuring out where the problem is.
Here we have table with several rows. It uses odd_row_graphical_set to display an alternating background. The +Item and +Fluid buttons are not part of the table.
/storage/Projects/factorio/bugreports/stucktables/2. after some rows destroyed.png
If we destroy some of the rows, then the background will successfully resize.
/storage/Projects/factorio/bugreports/stucktables/3. after all rows destroyed.png
If we instead destroy all of the rows, then the background will not be updated. The table here has a height of zero according to the inspector, but the old background is still visible.
/storage/Projects/factorio/bugreports/stucktables/4. after save and load.png
Notably, if we save and then load the game without closing the GUI, the background is drawn correctly. Maybe this is useful for figuring out where the problem is.