Auto centering not working

Launcher bar centers properly based on given number of tiles, but only works on refresh.
Want it to re-center itself when screen resolution changes.