adjust size to avoid scrolling.