Fixed semantics
This commit is contained in:
parent
752183ec6f
commit
411c21ec40
|
@ -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";
|
||||
|
|
Loading…
Reference in New Issue