Fixed #839
This commit is contained in:
parent
22318b95a3
commit
741abf4b70
|
@ -3,7 +3,7 @@
|
||||||
"solution": {
|
"solution": {
|
||||||
"name": "Modern Script Editor web part by Puzzlepart",
|
"name": "Modern Script Editor web part by Puzzlepart",
|
||||||
"id": "1425175f-3ed8-44d2-8fc4-dd1497191294",
|
"id": "1425175f-3ed8-44d2-8fc4-dd1497191294",
|
||||||
"version": "1.0.0.11",
|
"version": "1.0.0.12",
|
||||||
"includeClientSideAssets": true,
|
"includeClientSideAssets": true,
|
||||||
"skipFeatureDeployment": false
|
"skipFeatureDeployment": false
|
||||||
},
|
},
|
||||||
|
|
|
@ -27,11 +27,10 @@ export default class ScriptEditorWebPart extends BaseClientSideWebPart<IScriptEd
|
||||||
const style = window.getComputedStyle(element);
|
const style = window.getComputedStyle(element);
|
||||||
const hasPadding = style.paddingTop !== "0px";
|
const hasPadding = style.paddingTop !== "0px";
|
||||||
if (hasPadding) {
|
if (hasPadding) {
|
||||||
element.style.paddingTop = "0";
|
element.style.paddingTop = "0px";
|
||||||
element.style.paddingBottom = "0";
|
element.style.paddingBottom = "0px";
|
||||||
element.style.marginTop = "0";
|
element.style.marginTop = "0px";
|
||||||
element.style.marginBottom = "0";
|
element.style.marginBottom = "0px";
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
element = element.parentElement;
|
element = element.parentElement;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue