Skip to content

Commit

Permalink
Merge pull request #10254 from nextcloud/backport/10252/stable4.0
Browse files Browse the repository at this point in the history
[stable4.0] fix(iframe): scroll horizontally in case of overflow
  • Loading branch information
ChristophWurst authored Oct 14, 2024
2 parents 613c2d9 + 29c0dee commit 1fc86e8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
4 changes: 4 additions & 0 deletions css/html-response.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,7 @@
* {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Cantarell, Ubuntu, 'Helvetica Neue', Arial, 'Noto Color Emoji', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
}

html {
overflow-y: hidden;
}
6 changes: 5 additions & 1 deletion src/components/MessageHTMLBody.vue
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,11 @@ export default {
scout.on('beforeprint', this.onBeforePrint)
},
mounted() {
iframeResizer({ log: false, heightCalculationMethod: 'taggedElement' }, this.$refs.iframe)
iframeResizer({
log: false,
heightCalculationMethod: 'taggedElement',
scrolling: true,
}, this.$refs.iframe)
},
beforeDestroy() {
scout.off('beforeprint', this.onBeforePrint)
Expand Down

0 comments on commit 1fc86e8

Please sign in to comment.