Skip to content

[stable32] fix(settings): resize the settings iframe to its reported height#5910

Merged
elzody merged 1 commit into
stable32from
backport/5891/stable32
Jul 24, 2026
Merged

[stable32] fix(settings): resize the settings iframe to its reported height#5910
elzody merged 1 commit into
stable32from
backport/5891/stable32

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 <andras.timar@collabora.com>
@backportbot
backportbot Bot requested a review from elzody July 23, 2026 22:04
@backportbot
backportbot Bot requested review from elzody and juliusknorr as code owners 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 merged commit 9bc8377 into stable32 Jul 24, 2026
49 checks passed
@elzody
elzody deleted the backport/5891/stable32 branch July 24, 2026 17:31
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