move iframeholderdiv styles to after added to DOM
This commit is contained in:
parent
9f93801cb5
commit
014723144c
@ -31,8 +31,10 @@
|
||||
linkedInAutofillClicked = false;
|
||||
|
||||
// style the holder div
|
||||
iframeHolderDiv.style.textAlign = 'center';
|
||||
iframeHolderDiv.style.margin = '10px 0px';
|
||||
// 1/17/21 - disabled because not being set, trying
|
||||
// to move to after add to DOM
|
||||
// iframeHolderDiv.style.textAlign = 'center';
|
||||
// iframeHolderDiv.style.margin = '10px 0px';
|
||||
|
||||
// required by LinkedIn
|
||||
fillScript.setAttribute('type', 'IN/Form2');
|
||||
@ -102,6 +104,10 @@
|
||||
autoFillLocation.prepend(iframeHolderDiv);
|
||||
autoFillLocation.append(liAutoFillScript);
|
||||
|
||||
// moved from above to ensure it's in DOM before adding styles
|
||||
iframeHolderDiv.style.textAlign = 'center';
|
||||
iframeHolderDiv.style.margin = '10px 0px';
|
||||
|
||||
if (typeof MktoForms2 !== 'undefined') {
|
||||
MktoForms2.whenReady(function (form) {
|
||||
// need the id of the form so we can hook up autofill
|
||||
|
Loading…
Reference in New Issue
Block a user