Fixed semantics

This commit is contained in:
Mikael Svenson 2019-02-05 08:16:54 +01:00
parent 752183ec6f
commit 411c21ec40
1 changed files with 2 additions and 2 deletions

View File

@ -24,8 +24,8 @@ export default class ScriptEditorWebPart extends BaseClientSideWebPart<IScriptEd
let element = this.domElement.parentElement;
// check up to 5 levels up for padding and exit once found
for (let i = 0; i < 5; i++) {
let style = window.getComputedStyle(element);
let hasPadding = style.paddingTop !== "0px"
const style = window.getComputedStyle(element);
const hasPadding = style.paddingTop !== "0px";
if (hasPadding) {
element.style.paddingTop = "0";
element.style.paddingBottom = "0";