[Rseding91] [0.17.59] Force Auto Center Not Working

This subforum contains all the issues which we already resolved.
Post Reply
User avatar
Long Handed Inserter
Long Handed Inserter
Posts: 84
Joined: Sat Sep 16, 2017 9:04 pm

[Rseding91] [0.17.59] Force Auto Center Not Working

Post by Cooldude2606 »

auto_center (which is ment to be "auto-center-on-resize") is named incorrectly and is misleading.
LugGuiElement::force_auto_center() does not force an auto re-center.

All executed ingame with /c

Code: Select all

game.player.gui.screen.add{name='test',type='frame'} -- new frame in the top left
game.player.gui.screen.test.auto_center -- returns false
game.player.gui.screen.test.auto_center = true -- frame remains in top left
game.player.gui.screen.test.force_auto_center() -- frame remains in top left
game.player.gui.screen.test.add{name='drag',type='frame'} -- frame is now in the center, due to resize
--- Developer for Explosive Gaming factorio community. Find our code on GitHub. Please contact me via our Discord. ---

Factorio Staff
Factorio Staff
Posts: 12281
Joined: Wed Jun 11, 2014 5:23 am

Re: [Rseding91] [0.17.59] Force Auto Center Not Working

Post by Rseding91 »

Thanks for the report. It's now fixed for the next version of 0.17.
If you want to get ahold of me I'm almost always on Discord.

Post Reply

Return to “Resolved Problems and Bugs”