# ارتفاع iframe التعليقات المضمنة غير مضبوط

**URL:** https://meta.discourse.org/t/embedded-comments-iframe-height-not-set/85023
**Category:** Support
**Created:** [10 أبريل 2018، 9:24م UTC](https://meta.discourse.org/t/embedded-comments-iframe-height-not-set/85023 "2018-04-10T21:24:21Z")
**Posts on this page:** 1
**Showing post:** 3

<div class="post-metadata">

### Author: ![Bar\_Smith](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bar_smith/32/92338_2.png) [@Bar\_Smith](https://meta.discourse.org/u/Bar_Smith)
#### Post date: [10 أبريل 2018، 10:08م UTC](https://meta.discourse.org/t/embedded-comments-iframe-height-not-set/85023/3 "2018-04-10T22:08:19Z")

</div>

I think I was able to find an answer.

I’m not sure if this is good practice, but I am just forcing the I frame to resize as recommended in this question:

> <https://stackoverflow.com/questions/2064850/how-to-refresh-an-iframe-using-javascript>

When someone switches tabs the frame is automatically reset like this:

```
var ifr = document.getElementById('discourse-embed-frame');
ifr.src = ifr.src;

```

Thanks for letting me work through this, and I hope this is useful to someone else some day.

Please let me know if this is bad practice.

---

_[View the full topic](https://meta.discourse.org/t/embedded-comments-iframe-height-not-set/85023)._
