Check for width changes in addition to height changes.
Better centering.