text selection spill over offset magic