|
|
@@ -284,17 +284,10 @@ this.docHelper = this.docHelper || (() => {
|
|
|
function getSize(win, imageElement) {
|
|
|
const computedStyle = win.getComputedStyle(imageElement);
|
|
|
let paddingLeft, paddingRight, paddingTop, paddingBottom, borderLeft, borderRight, borderTop, borderBottom;
|
|
|
- if (computedStyle.boxSizing == "content-box") {
|
|
|
- paddingLeft = 0;
|
|
|
- paddingRight = 0;
|
|
|
- paddingTop = 0;
|
|
|
- paddingBottom = 0;
|
|
|
- } else {
|
|
|
- paddingLeft = getWidth("padding-left", computedStyle);
|
|
|
- paddingRight = getWidth("padding-right", computedStyle);
|
|
|
- paddingTop = getWidth("padding-top", computedStyle);
|
|
|
- paddingBottom = getWidth("padding-bottom", computedStyle);
|
|
|
- }
|
|
|
+ paddingLeft = getWidth("padding-left", computedStyle);
|
|
|
+ paddingRight = getWidth("padding-right", computedStyle);
|
|
|
+ paddingTop = getWidth("padding-top", computedStyle);
|
|
|
+ paddingBottom = getWidth("padding-bottom", computedStyle);
|
|
|
borderLeft = getWidth("border-left-width", computedStyle);
|
|
|
borderRight = getWidth("border-right-width", computedStyle);
|
|
|
borderTop = getWidth("border-top-width", computedStyle);
|