[0.12.29] [kovarex] Tables render incorrectly in full screen mode
Posted: Fri Apr 22, 2016 3:13 am
Tables are rendered with extra cell spacing in full screen mode compared to windowed mode.
The following table style:
Renders like this in windowed mode (this table has colspan=20, and has a checkbox with a solid background image in every cell):
![Image](https://forums.factorio.com/images/ext/ab5ea64e4e278a4b52fa32fa82fdfb9b.png)
And like this in full screen mode:
![Image](https://forums.factorio.com/images/ext/8e50d30eeef9def797e869fce527972f.png)
The windowed mode table has 0 spacing between cells, as specified. The full screen mode table has a larger spacing which seems to be incorrect wrt the style. This offset is consistent; for example here is the default slot_table_style in windowed mode:
![Image](https://forums.factorio.com/images/ext/32eb09e7231872512e8b88b56ff5c7fc.png)
And fullscreen mode:
![Image](https://forums.factorio.com/images/ext/c6da93b23bd2eefbce04f95c1ea6d838.png)
This behavior is not limited to mod GUI's. The tool belt and chest/inventory windows also have additional spacing between cells in full screen mode, although the effect appears less pronounced for some reason.
Windows 7 64-bit, "normal" graphics quality, 1440 x 900.
The following table style:
Code: Select all
data.raw["gui-style"].default[ITEM_TABLE_STYLE] = {
type = "table_style",
parent = "table_style",
cell_padding = 0,
horizontal_spacing = 0,
vertical_spacing = 0
}
![Image](https://forums.factorio.com/images/ext/ab5ea64e4e278a4b52fa32fa82fdfb9b.png)
And like this in full screen mode:
![Image](https://forums.factorio.com/images/ext/8e50d30eeef9def797e869fce527972f.png)
The windowed mode table has 0 spacing between cells, as specified. The full screen mode table has a larger spacing which seems to be incorrect wrt the style. This offset is consistent; for example here is the default slot_table_style in windowed mode:
![Image](https://forums.factorio.com/images/ext/32eb09e7231872512e8b88b56ff5c7fc.png)
And fullscreen mode:
![Image](https://forums.factorio.com/images/ext/c6da93b23bd2eefbce04f95c1ea6d838.png)
This behavior is not limited to mod GUI's. The tool belt and chest/inventory windows also have additional spacing between cells in full screen mode, although the effect appears less pronounced for some reason.
Windows 7 64-bit, "normal" graphics quality, 1440 x 900.