main ← fix/embed-dynamic-height-inline-style
opened 05:34PM - 16 Apr 26 UTC
## Summary
When Discourse is loaded in full app embed mode with `dynamicHeight:… true`, the iframe was not resizing in production despite `discourse-resize` messages arriving correctly.
The full app path sets `iframe.style.height` as an inline style for the initial height. Inline styles always win over the `height` HTML attribute, so our resize handler — which set `iframe.height = ...` — had no visible effect.
This changes the resize handler to set `iframe.style.height` so it actually overrides the inline style. This also works for the standard (non-full-app) embed path since no inline style is set there initially.
## Test plan
- [ ] Full app embed with `dynamicHeight: true` — verify iframe height updates as content loads
- [ ] Standard (non-full-app) embed — verify iframe still resizes correctly
- [ ] CSS `max-height` on the iframe still wins (inline `height` doesn't override `max-height`)