Created by: heldchen
top offset was not calculated correctly. fixes #9650 (closed) and #9661 (closed)