Fix for issue 302

see: tests/offset.html

Steps to reproduce bug:
1. Hover your mouse pointing at any one text box
2. Press F5 to refresh the page
3. Repeat step 2, all of the text box the mouse is pointing to the text box after the position will be confusion

Sometimes you can reproduce such documents under IE7 mode