adjust title relative to width or height