Skip to content
Snippets Groups Projects
Commit c702d9d7 authored by Nik | Klampfradler's avatar Nik | Klampfradler
Browse files

Merge branch...

Merge branch '813-resize-listener-for-iframe-in-legacybasetemplate-does-not-trigger-in-some-cases' into 'release-3.0'

Resolve "Resize listener for IFrame in LegacyBaseTemplate does not trigger in some cases"

See merge request !1195
parents 19c0ea38 b2ac613b
No related branches found
No related tags found
3 merge requests!1237Release 3.0,!1195Resolve "Resize listener for IFrame in LegacyBaseTemplate does not trigger in some cases",!1183Release 3.0
Pipeline #116285 failed
......@@ -20,6 +20,8 @@ Fixed
* In case the status code of a response was not in the range between 200 and 299
but still indicates that the response should be delivered, e. g. in the case
of a redirected request, the service worker served the offline fallback page.
* In some cases, the resize listener for the IFrame in the `LegacyBaseTemplate`
did not trigger.
`3.0b1` - 2023-02-27
--------------------
......
......@@ -77,13 +77,13 @@ export default {
const title = this.$refs.contentIFrame.contentWindow.document.title;
this.$root.$setPageTitle(title);
// Adapt height of IFrame according to the height of its contents once and listen to resize events
// Adapt height of IFrame according to the height of its contents once and observe height changes
this.iFrameHeight =
this.$refs.contentIFrame.contentDocument.body.scrollHeight;
this.$refs.contentIFrame.contentWindow.onresize = () => {
new ResizeObserver(() => {
this.iFrameHeight =
this.$refs.contentIFrame.contentDocument.body.scrollHeight;
};
}).observe(this.$refs.contentIFrame.contentDocument.body)
this.$root.contentLoading = false;
},
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment