Followup to #7537. RTE Wizard now takes docheader height into account.
authorJeff Segars <jsegars@alumni.rice.edu>
Tue, 16 Sep 2008 14:07:12 +0000 (14:07 +0000)
committerJeff Segars <jsegars@alumni.rice.edu>
Tue, 16 Sep 2008 14:07:12 +0000 (14:07 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@4134 709f56b5-9817-0410-a4d7-c38de5d9e867

typo3/sysext/rtehtmlarea/class.tx_rtehtmlarea_base.php

index b9f29c4..e25b196 100644 (file)
@@ -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;';