Fixed a bug in vertical offset when height of container > height of contents