Take element offset into account when resizing

Take the element offset and scroll position into account when dragging
a splitbar.  Fixes #52.
Merge pull request #67 from mindjuice/issue52-fix

Take element offset into account when resizing