fix cross line positioning for firefox