- Posts: 1
How To / General
problem with auto height in wrapper.
- rhl-sprog
- Topic Author
- Offline
- New Member
-
Less
More
7 years 8 months ago #1
by rhl-sprog
problem with auto height in wrapper. was created by rhl-sprog
Hi
I have a problem with auto height in wrapper.
I can set a fixed height and add a scrollbar, but that´s not what I want.
When I set Autoheight in wrapper, the Iframe has no height attribute, and moodle doesn´t show.
When I set Cross-domain auto-height the iframe is 150px and the header of moodle is visible, but no height attribute and the iFrameResize({heightCalculationMethod:'bodyScroll'}, '#myIframe') is called.
Moodle 1.2
Joomla 3.8.10
I´m using a subdomain.
Joomla: main.onlinesprogkursus.dk
moodle: onlinesprogkursus.dk
BR
Bob
I have a problem with auto height in wrapper.
I can set a fixed height and add a scrollbar, but that´s not what I want.
When I set Autoheight in wrapper, the Iframe has no height attribute, and moodle doesn´t show.
When I set Cross-domain auto-height the iframe is 150px and the header of moodle is visible, but no height attribute and the iFrameResize({heightCalculationMethod:'bodyScroll'}, '#myIframe') is called.
Moodle 1.2
Joomla 3.8.10
I´m using a subdomain.
Joomla: main.onlinesprogkursus.dk
moodle: onlinesprogkursus.dk
BR
Bob
Please Log in or Create an account to join the conversation.
- Antonio Durán
-
- Offline
- Moderator
-
Less
More
- Posts: 7848
7 years 8 months ago #2
by Antonio Durán
Replied by Antonio Durán on topic problem with auto height in wrapper.
Hi.
I am sorry, but I cannot give you more info: cross-domain auto-height will work most of the times, but not always.
You could try changing the heightCalculationMethod in /components/com_joomdle/js/iframeSizer.min.js to see if that helps:
github.com/davidjbradshaw/iframe-resizer
If that does not help, you can also set your Moodle to be in a subfolder, instead of a subdomain, so autoheight can work better.
I am sorry, but I cannot give you more info: cross-domain auto-height will work most of the times, but not always.
You could try changing the heightCalculationMethod in /components/com_joomdle/js/iframeSizer.min.js to see if that helps:
github.com/davidjbradshaw/iframe-resizer
If that does not help, you can also set your Moodle to be in a subfolder, instead of a subdomain, so autoheight can work better.
Please Log in or Create an account to join the conversation.