-
-
Notifications
You must be signed in to change notification settings - Fork 233
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Height is not being set properly #283
Comments
Hi, maybe you can take a look at this issue, Issues#233. I encountered the same problem, and it seems to be related to the iframe. When I switched my Docker image 'djyde/cusdis' to version 1.3.2, everything went back to normal. |
I'm having the same problem with my comment system hosted at cusdis.com. |
I was having the same problem where the height property wasn't set and I was getting a small window with a scroll bar. I am using the free tier, hosted at cusdis.com and using the embed code provided. I've come up with a workaround by writing a short script to resize the iframe on page load. If you're using the embed code provided like I am, which looks like this
Then here is the script you need to include on your page to resize the iframe on each page reload.
I had to add the timeout because the iframe seems to take awhile to load so we want to make sure the element we're targeting actually exists in dom. Adjust the timeout as you like, but considering comments are usually at the bottom of the page (and users usually don't scroll to the bottom straight away), it's safer to give the iframe more time to load than adjust its height prematurely. Your mileage may vary. |
I'm also facing the same problem with comments hosted on cusdis.com, any thoughts @djyde ? @seburbandev Appreciate your work around, I'll try it on my site. But I think this should be fixed on the source because timeout feature is not reliable depending on network load etc. |
@rnkdev I completely agree, this should be fixed on source, and my approach is hacky and by no means a proper solution so use with caution. That said, it seems that this issue had been raised a couple of times a while ago and still no response. In my opinion, the scroll makes it unusable, which is a real shame, so in my case it was either this or an alternative. I'm going with the former for now. |
I'm having the same issue: free tier, not self-hosted. |
I have added the required partials to my layouts/_default/partials
but the height is not being set properly.
and in single HTML
what might be the reason? do i have to add some CSS here ?
this is what i see in my blog
this should take the proper required height. instead this is taking a fixed height.
The text was updated successfully, but these errors were encountered: