TYPO3-Workspaces height of iframe to small
I've found a bug in IE 7-9 with the preview-page of TYPO3-Workspaces.
The content of the webpage is displayed in an iframe without height.
This makes the IE get crazy and show the page with a height of 150px (see screenshot).
Tested in TYPO3-Version 4.5.15 and 4.7.1
Was tested with 6.2.3 by Kaan Sanli with different browsers and resulted in same issue.
#4 Updated by Kaan Sanli over 6 years ago
We had the same problem in an installation using 4.5.24.
For editors, the backend was accessible via two domains (sub.newdomain.xy/typo & olddomain.xy/typo3). However, the frontend was accessible only by one domain (sub.newdomain.xy).
Every editor, using IE AND the old domain for logging in, had this 150px IFrame in the ws-preview.
After rewriting the old domain for backend-login (allowing the usage of the new domain only), the bug was gone.
I hope, this hint could help you.
#8 Updated by Kaan Sanli over 5 years ago
the problem still exists, seen on a very new T3-CMS (6.2.3). Not only the IE is affected but also browsers like Firefox and Chrome. But: it's not really reproducible, sometimes the bug occurs and sometimes not although using the same settings.
When loading the WS-Preview, the IFrame first has no height. The height is loaded dynamically and here the bug occurs. Sometimes the height isn't loaded and added as inline-style, so the IFrame's height is automatically 150px. I cant't tell, why it happens, at least I don't see any JS error.
#14 Updated by COCO Communication Company GmbH over 3 years ago
We just experienced this issue, TYPO3 CMS v6.2.25, multiple Browsers (IE 11, Safari, Chrome, Firefox).
We realized, that this issue only occurs on those pages, which are restricted to specific frontend users and/or groups while the backend user who is viewing the page is not logged in as frontend user. As a result two HTTP errors are thrown – presumably initiated through AJAX.
That totally makes sense, since every request contains the identifier of the page previewed. TYPO3 CMS just won’t hand them over, if it assumes you’re not allowed to view them.
Logging in to the frontend before calling the preview solves this and the iFrame correctly fills the whole viewport.
At least this is what we were experiencing today. Maybe this helps figuring out how to get this fixed.
#15 Updated by Florian Seirer almost 3 years ago
This happens to us on TYPO3 7.6.15 too, and we usually don't use frontend logins.
Also, our backend runs on another domain.
If an editor goes to the view module for the first time, the width is set to "automatic", and the iFrame is only 150px high.
If the width is changed to another value and then back to automatic width, all pages are shown correctly from that point on.
And if that user starts using another browser, it's back to a height of 150px.
Chrome, Firefox an IE11 are affected.
#17 Updated by Riccardo De Contardi over 2 years ago
I report here the comment https://forge.typo3.org/issues/44745#note-7 :
I have the same issue. I researched and found out the problem is that backendDomain is not set in the IFrame. So you got in the parent 'document.domain = "xyz.domain.de"' and in the IFrame 'document.domain = ""'.
A similiar problem is maybe related: http://forge.typo3.org/issues/30643
#19 Updated by Riccardo De Contardi about 2 years ago
I report here the description of the issue #78736 to keep track of it:
The backend runs under domain www.example.com
One site has TCEMAIN.previewdomain = foo.example.com
In Workspace preview for that site the iframes don't get a height whereby all parent DOM-Elements get the correct height.
In the main site with domain www.example.com the iframes get the correct height.