[Rseding91] [0.17.59] Force Auto Center Not Working

This subforum contains all the issues which we already resolved.
User avatar
Cooldude2606
Fast Inserter
Fast Inserter
Posts: 103
Joined: Sat Sep 16, 2017 9:04 pm
Contact:

[Rseding91] [0.17.59] Force Auto Center Not Working

Post by Cooldude2606 »

TL;DR
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.

Re-Production
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 and Clusterio. Please contact me via our Discord. ---
Rseding91
Factorio Staff
Factorio Staff
Posts: 14290
Joined: Wed Jun 11, 2014 5:23 am
Contact:

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”