zoid icon indicating copy to clipboard operation
zoid copied to clipboard

removing scroll bars at load

Open jasan-s opened this issue 3 years ago • 2 comments

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 avatar Jul 01 '21 01:07 jasan-s

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

HenriqueLimas avatar Oct 14 '21 17:10 HenriqueLimas

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.

hnoson avatar Nov 04 '21 10:11 hnoson