add handling when content area is smaller than view