Here’s some more info in case it helps:
I’m following this guide on setting up embedded comments.
Here is a screenshot of my embedding settings:
Here is a sample blog post on my site: http://happycoding.io/blog/hello-world
If you scroll to the bottom, you’ll see the comments section (and the fact that it’s only 150 pixels high), which leads to this forum topic: http://forum.happycoding.io/t/hello-world-happy-coding/23/1
Looking at the source for the blog post page, here’s the embed code I’m using:
<div id="discourse-comments"></div>
<script type="text/javascript">
DiscourseEmbed = { discourseUrl: 'http://forum.HappyCoding.io/',
discourseEmbedUrl: 'http://happycoding.io/blog/hello-world' };
(function() {
var d = document.createElement('script'); d.type = 'text/javascript'; d.async = true;
d.src = DiscourseEmbed.discourseUrl + 'javascripts/embed.js';
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(d);
})();
</script>
Now, if I look at the source for Coding Horror’s latest blog, I see this:
<div id="discourse-comments"></div>
<script type="text/javascript">
var discourseUrl = "https://discourse.codinghorror.com/",
discourseEmbedUrl = 'https://blog.codinghorror.com/can-software-make-you-less-racist/';
(function() {
var d = document.createElement('script'); d.type = 'text/javascript'; d.async = true;
d.src = discourseUrl + 'javascripts/embed.js';
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(d);
})();
</script>
This is almost exactly what I’m doing, and more importantly, I don’t see anywhere else that’s modifying the iframe height. But the comments section on the Coding Horror post does grow to fit all of the comments, whereas mine doesn’t.
Am I missing something obvious? Do my Discourse settings look correct? Is there something on the blog post side that I need to be doing?
Sorry to bump this again. If this isn’t enough info to get an answer, I’ll try asking on the Discourse tag on Stack Overflow, but it would be useful just to know whether this is the expected behavior or not, since I see that other people have the same issue in the original guide, but I can’t tell whether their issues were expected or a result of something not working correctly.