catch corner case where pos.left/pos.top can be NaN which is > 0