On the front-end of the site, when I click on "Join the Conversation!" the slider does not open to the full length of the iframe contents (a published page dedicated to comments). I can't figure out why it only opens about 100px in height.
Q. What code can I affix to the jQuery code (shown above) to resize the height of the toggle contents area according to the constantly changing height of the comments that are contained therein?
Q. Or, do I need to change something in my toggle div block of code (shown above)?
If my approach here is the wrong approach, then I'm all ears.
The jQuery code:
jQuery(document).ready(function () {
jQuery(".toggle-hide").click(function () {
jQuery(".toggle-effect").slideToggle("medium");
});
});
The toggle and content therein:
<div style="background-color: #000000; width: 100%;">
<div class="toggle-hide" style="position: relative; font-size: initial; color: white; font-weight: 700; background-color: #ccc; width: 91.1%; margin-left: 4.5%; margin-right: -4.5%; margin-top: -2.4%; border-top-right-radius: 4px;">Join the Conversation!</div>
</div>
<div class="toggle-effect" style="display: none;">
<div style="position: relative; width: 100%; height: 800px; float: left; top: -2%; z-index: 1; background: #fff;">
<iframe src="./blog-comments" width="100%" height="800"> </iframe>
</div>
</div>
Edit: I own the site in the iframe, it's the comments section and I'm not using any third party comments plugins to run the comments, either.