zoid
zoid copied to clipboard
removing scroll bars at load
all the demos and my own implementation shows scroll bars on initial load of iframe while the loading spinner renders, is it possible to hide the scrollbars?
scroll bars should not render if the content does not exceed the iframe
@jasan-s I had the same issue and I was able to find the solution on PayPal button code: ,
You can pass the attributes
property setting the iframe
with scrolling: 'no'
attributes: {
iframe: {
scrolling: 'no'
}
},
scrolling
attribute is deprecated. I tried to resolve it using CSS, but the following didn't work since it needs to be applied to inner element like <html> or <body>.
attributes: {
iframe: {
style: 'overflow: hidden'
}
}
The issue is due to the margin added to body by browser. We should overwrite the margin or change the spinner size.