kangax/fabric.js — pull request #647 by Kienz (2013-05-25 15:36:42+00:00)
Title: Fix wrong canvas offset

- Copy inline style attributes from lowerCanvasEl to upperCanvasEl
- Copy classes from lowerCanvasEl to upperCanvasEl
- Add borderTopWidth, borderLeftWidth, paddingTopWidth and paddingLeftWidth (offsetAttributes) to canvas offset (fabric.util.getElementOffset) - these properties are not considered from getBoundingClientRect()
- JSfiddle's for tests
- new: http://jsfiddle.net/Kienz/KRcsY/
- old: http://jsfiddle.net/Kienz/xrMDr/

Fixes issue #347