Followup-to #9819: Workspace preview window - browser compatibility fixed
authortolleiv <tolleiv@743128fe-103e-dd11-99c4-001b210b3e58>
Tue, 21 Dec 2010 19:36:38 +0000 (19:36 +0000)
committertolleiv <tolleiv@743128fe-103e-dd11-99c4-001b210b3e58>
Tue, 21 Dec 2010 19:36:38 +0000 (19:36 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/CoreProjects/workspaces/workspaces/trunk@3518 743128fe-103e-dd11-99c4-001b210b3e58

typo3/sysext/workspaces/ChangeLog
typo3/sysext/workspaces/Resources/Private/Templates/Preview/Preview.html

index 70a3b90..6d73f1f 100644 (file)
@@ -1,3 +1,7 @@
+2010-12-21  Tolleiv Nietsch <typo3@tolleiv.de>
+
+       * Followup-to #9819: Workspace preview window - browser compatibility fixed
+
 2010-12-20  Tolleiv Nietsch <typo3@tolleiv.de>
 
        * Fixed bug #10693: Save and view command previews wrong page record
index e16f7f5..7a0d38e 100644 (file)
@@ -1,6 +1,12 @@
 <script type="text/javascript">
        document.domain =  '{backendDomain}';
 
-       // @todo redirect to split module if this is opened standalone
-        parent.resize(document.height);
+               // @todo redirect to split module if this is opened standalone
+       parent.resize(
+               Math.max(
+                       Math.max(document.body.scrollHeight, document.documentElement.scrollHeight),
+                       Math.max(document.body.offsetHeight, document.documentElement.offsetHeight),
+                       Math.max(document.body.clientHeight, document.documentElement.clientHeight)
+               )
+       );
 </script>