Php photo gallery TWG | JFUploader | TWG Flash upload | WFU | Forum
https://www.tinywebgallery.com/forum/

iFrame height
https://www.tinywebgallery.com/forum/viewtopic.php?f=21&t=4505
Page 1 of 1

Author:  BillH [ 28. Dec 2017, 22:16 ]
Post subject:  iFrame height

Hi Michael, you were helping me at Wordpress.org, but I'm moving the conversation here.

Using the pro version.

Source:
http://rezility.rocks/Assets/effect/banner.htm

Result:
http://rezility.rocks

It's alright, but it's out of the monitor's view at the bottom. I think it's because of the menu above the iframe.

Here is my shortcode:

[advanced_iframe securitykey="a6359db81412c57c2b34b7b825dbb9d8e1e31c45" src="http://rezility.rocks/Assets/effect/banner.htm"scrolling="no"width="100%" enable_responsive_iframe="true" iframe_height_ratio="0.4989" use_shortcode_attributes_only=”true”]

Any ideas?

Author:  TinyWebGallery [ 29. Dec 2017, 20:05 ]
Post subject:  Re: iFrame height

Now I understand what you mean. You want the banner 100% height of the viewport?

Then remove the whole ratio stuff and use e.g.

height=”100vh-100px”

where the 100px is for the header! The pro version does support calculations at the height. If you have different headers for different devices you then can also use the browser detection.

Best, Michael

Author:  BillH [ 29. Dec 2017, 20:51 ]
Post subject:  Re: iFrame height

Soooo close! That helped a LOT, but now I’ve got a horizontal scroll even though width is set to 100%. When it first loads, it's perfect for a second! And then it resizes and goes below the viewport.

Edit: Looks like it's only happening in Chrome. Firefox and IE/Edge are ok. Another weird thing though. With that new css option, my images are scaling down before the slide occurs now. Odd.

Edit 2: Chrome is fine. The wordpress panel at top was offsetting the iframe. Only issue now is the graphics scaling down during transform, but I don't think that's your problem.

Author:  TinyWebGallery [ 30. Dec 2017, 04:35 ]
Post subject:  Re: iFrame height

So can i help
.?

Page 1 of 1 All times are UTC + 1 hour [ DST ]
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/