use the actual doc view's bounds instead of the doc rect

Fixes an issue where the document view wasn’t actually being resized
because the encompassing size wasn’t set when it needed to be.
Merge pull request #79 from jwilling/fix-redraw

Fix redraw