[Magnific Popup] How to make iframe scrolling to yes?

Forge Component
(5)
Published on 2019-06-26 by Matheus Medeiros
5 votes
Published on 2019-06-26 by Matheus Medeiros

How to make iframe scrolling to yes? 



need for pop up scrolling, thanks, advance


Solution

Hi Agus,

You can add attribute in the properties of the widget.


Alternatively, you can use javascript to add attribute to the iframe as well.


Regards,

Saugat

Solution

Hi Agus.

The scrolling attribute is deprecated.

Technically it should not make any difference since the popups CSS is set to stretch in order to fit the iframes in it.

What exactly are you trying to accomplish ?

Saugat Biswas wrote:

Hi Agus,

You can add attribute in the properties of the widget.


Alternatively, you can use javascript to add attribute to the iframe as well.


Regards,

Saugat

Hi Saugat, thanks for sugestion modify js in Magnific Popup help a lot, btw the attribute one not works


Matheus Medeiros wrote:

Hi Agus.

The scrolling attribute is deprecated.

Technically it should not make any difference since the popups CSS is set to stretch in order to fit the iframes in it.

What exactly are you trying to accomplish ?

Hi Matheus,

have problem with iframe web with not fix height like have some expendable content/or if not all item showing in iframe

the hight must set right in pop up? and if content in iframe got expand some time  if web not heve height auto and have scrolling sometime got this problem

the example with picture below

when expanding the content content outside the pop up is not visible


with scrollable iframe this one not problem because it can scroll to that section