Changed line positioning to enable hittesting