This commit is contained in:
Mikael Svenson 2019-04-15 14:52:17 +02:00
parent 22318b95a3
commit 741abf4b70
2 changed files with 5 additions and 6 deletions

View File

@ -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
}, },

View File

@ -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;
} }