Added support for relatively positioned elements with top offset