From: Jeff Segars Date: Tue, 16 Sep 2008 14:07:12 +0000 (+0000) Subject: Followup to #7537. RTE Wizard now takes docheader height into account. X-Git-Tag: TYPO3_4-3-0alpha1~171 X-Git-Url: http://git.typo3.org/Packages/TYPO3.CMS.git/commitdiff_plain/22847b7ecf3334bbb15bd2e958302af405c86b5d Followup to #7537. RTE Wizard now takes docheader height into account. git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@4134 709f56b5-9817-0410-a4d7-c38de5d9e867 --- diff --git a/typo3/sysext/rtehtmlarea/class.tx_rtehtmlarea_base.php b/typo3/sysext/rtehtmlarea/class.tx_rtehtmlarea_base.php index b9f29c49c35..e25b1960294 100644 --- a/typo3/sysext/rtehtmlarea/class.tx_rtehtmlarea_base.php +++ b/typo3/sysext/rtehtmlarea/class.tx_rtehtmlarea_base.php @@ -441,6 +441,10 @@ class tx_rtehtmlarea_base extends t3lib_rteapi { $height = 'document.body.offsetHeight'; $width = 'document.body.offsetWidth'; } + + // Subtract the docheader height from the calculated window height + $height .= ' - document.getElementById("typo3-docheader").offsetHeight'; + $editorWrapWidth = '100%'; $editorWrapHeight = '100%'; $this->RTEdivStyle = 'position:relative; left:0px; top:0px; height:100%; width:100%; border: 1px solid black; padding: 2px 0px 2px 2px;';