Skip to content

[stable34] fix(settings): resize the settings iframe to its reported height#5912

Merged
elzody merged 1 commit into
stable34from
backport/5891/stable34
Jul 24, 2026
Merged

[stable34] fix(settings): resize the settings iframe to its reported height#5912
elzody merged 1 commit into
stable34from
backport/5891/stable34

Conversation

@backportbot

@backportbot backportbot Bot commented Jul 23, 2026

Copy link
Copy Markdown

Backport of PR #5891

The embedded settings page posts an Iframe_Height message so the parent
can grow the iframe to fit its content. The handler read event.data as
an object, but the message arrives as a JSON string, so data.MessageId
was always undefined and the resize never ran, leaving a short frame
with an inner scrollbar. Parse the string before inspecting it.

Also set style.height instead of the deprecated height attribute, which
ignores a "<n>px" value, verify the sender origin, and add a min-height
fallback for the moment before the first height message arrives.

Signed-off-by: Andras Timar <[email protected]>
@backportbot
backportbot Bot requested a review from elzody as a code owner July 23, 2026 22:04
@backportbot
backportbot Bot requested a review from elzody July 23, 2026 22:04
@backportbot
backportbot Bot requested a review from juliusknorr as a code owner July 23, 2026 22:04
@backportbot
backportbot Bot requested a review from timar July 23, 2026 22:04
@backportbot backportbot Bot added the 3. to review Ready to be reviewed label Jul 23, 2026

@elzody elzody left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The failing Cypress test in direct.spec.js is flakey and unrelated

@elzody
elzody merged commit 022e363 into stable34 Jul 24, 2026
45 of 49 checks passed
@elzody
elzody deleted the backport/5891/stable34 branch July 24, 2026 17:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Ready to be reviewed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants