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

Height of Iframe too big, but cuts content if set lower
https://www.tinywebgallery.com/forum/viewtopic.php?f=21&t=4551
Page 1 of 1

Author:  Stuart0870 [ 20. Feb 2018, 17:49 ]
Post subject:  Height of Iframe too big, but cuts content if set lower

In the item below, I am trying to extract just the table and key below it, I have made various changes to height= and show_part_of_iframe_height= but if I try and set it to the actual height of the item, around 390px it only shows the first couple of lines of the table before leaving the rest blank, setting it to 1000 shows the whole table, but then leaves a huge gap below it, as can be seen here.

What am I doing wrong please?

Code:
[advanced_iframe securitykey="xxxx" src="https://derbyshireandcheshirelge.play-cricket.com/website/websites/view_division?id=76428" height="100%" width="780" id="div3_table" show_part_of_iframe="true" show_part_of_iframe_x="0" show_part_of_iframe_y="540" show_part_of_iframe_width="755" show_part_of_iframe_height="1000" show_part_of_iframe_allow_scrollbar_vertical="false" scrolling="no" enable_ios_mobile_scolling="false"]

Author:  Stuart0870 [ 21. Feb 2018, 11:08 ]
Post subject:  Re: Height of Iframe too big, but cuts content if set lower

Ok, it seems the parent page has:
Code:
<div class="container main" style="min-height: 1333px;">

which appears to be the cause of the huge gap, but I've not figured out how to modify yet, if someone could give me a pointer.

Author:  Stuart0870 [ 21. Feb 2018, 12:58 ]
Post subject:  Re: Height of Iframe too big, but cuts content if set lower

FINALLY, did enough combinations of things to get it working.

Code:
[advanced_iframe securitykey="xxxxx" src="https://derbyshireandcheshirelge.play-cricket.com/website/websites/view_division?id=78243" id="div5_table" parent_content_css="#ai-div-div5_table { max-height: 400px !important; }" height="940" width="800" onload_resize="true" show_part_of_iframe="true" show_part_of_iframe_x="0" show_part_of_iframe_y="540" show_part_of_iframe_width="775" show_part_of_iframe_height="980" show_part_of_iframe_zoom="full" show_part_of_iframe_allow_scrollbar_vertical="false" scrolling="no" enable_ios_mobile_scolling="false" iframe_hide_elements="$("div.clearfix"),#footer_5503,#temporaryPopupWindow"]

Author:  TinyWebGallery [ 22. Feb 2018, 00:40 ]
Post subject:  Re: Height of Iframe too big, but cuts content if set lower

Where is the iframe included?

Your shortcode has a lot of settings that do not make sense together.
Have you checked the Javascript console? Because Configuration errors are reported there.

e.g.
onload_resize="true" show_part_of_iframe="true"
together normally do not make sense as one feature is for the same domain while the other one is normally used for remote domains only.

iframe_hide_elements="$("div.clearfix"),#footer_5503,#temporaryPopupWindow"]
is also for the same domain only and $("div.clearfix") is not a valid setting here.

show_part_of_iframe_allow_scrollbar_vertical="false" enable_ios_mobile_scolling="false" are normally the default. So no need to set it here.

Best, Michael

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