The event coordinates are document coordinates, so the offset they are
compared to should also be the document one.
Signed-off-by: Pauli Virtanen <pav@iki.fi>
- move some methods to ResizeItem subclass
- allow distributor to instanciate sizer and resizeitem it needs
through static factory methods, instead of passing in another ctor
a distributor can only function with the right item and sizer anyways.
- use consistent import/export style
- remove obsolete code