Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/mail.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Kesselberg <mail@danielkesselberg.de>2021-09-23 22:26:07 +0300
committerDaniel Kesselberg <mail@danielkesselberg.de>2021-09-24 11:37:31 +0300
commit8d879f03c94ed66696cfe961ba22a232c88acd7a (patch)
tree206adec534b57b96b3224b23a35ba664b8b03de2 /lib
parent2b68a54e3db827c6b2e4fc8df3cf22489d35ef84 (diff)
Calculate height for iframe by taggedElement
We disabled CSSTidy on purpose because some CSS rules were rewritten in a weird way: https://github.com/nextcloud/mail/pull/5424 For some reason the iframe height calculation does not work anymore. document.body.offsetHeight is 150. taggedElement as heightCalculationMethod finds the bottom of the lowest element with a data-iframe-height attribute. Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
Diffstat (limited to 'lib')
-rw-r--r--lib/Http/HtmlResponse.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Http/HtmlResponse.php b/lib/Http/HtmlResponse.php
index 645bb5d41..6264c432f 100644
--- a/lib/Http/HtmlResponse.php
+++ b/lib/Http/HtmlResponse.php
@@ -83,6 +83,6 @@ class HtmlResponse extends Response {
return $this->content;
}
- return '<!DOCTYPE html><html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><script nonce="' . $this->nonce . '" src="' . $this->scriptUrl . '"></script></head><body>' . $this->content . '</body></html>';
+ return '<!DOCTYPE html><html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><script nonce="' . $this->nonce . '" src="' . $this->scriptUrl . '"></script></head><body>' . $this->content . '<div data-iframe-height></div></body></html>';
}
}