Use canonical CSS property name

Firefox doesn't support shorthand properties like "border-left", but instead
requires "border-left-width".
This commit is contained in:
Winston Chang
2018-07-10 13:40:50 -05:00
parent 84ad9997da
commit 5bbf2aa57a

View File

@@ -1509,8 +1509,8 @@ function findOrigin($el) {
// Find the size of the padding and border, for the top and left. This is
// before any transforms.
const paddingBorder = {
left: parseInt($el.css("border-left")) + parseInt($el.css("padding-left")),
top: parseInt($el.css("border-top")) + parseInt($el.css("padding-top"))
left: parseInt($el.css("border-left-width")) + parseInt($el.css("padding-left")),
top: parseInt($el.css("border-top-width")) + parseInt($el.css("padding-top"))
};
// offset() returns the upper left corner of the element relative to the