use docToWindowPoint to transform document rect to screen rect
Merge pull request #222 from chrox/master

use docToWindowPoint to transform document rect to screen rect