Does centering still work with this?  I believe you might need to show before center, otherwise it can't accurately determine the width and height.