Fix vertical and center alignment when transforms are used