Allow centering on either axis fixes #2001
Merge pull request #2014 from Tom-Ski/master

Allow centering on either axis fixes #2001