Bug #41629

TYPO3-Workspaces height of iframe to small

Added by Alessandro Schmitz about 7 years ago. Updated about 2 years ago.

Status:
New
Priority:
Should have
Assignee:
-
Category:
Workspaces
Target version:
-
Start date:
2012-10-05
Due date:
% Done:

0%

TYPO3 Version:
4.5
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

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

Edit:

Was tested with 6.2.3 by Kaan Sanli with different browsers and resulted in same issue.

issue-ie-workspaces.PNG View (32.1 KB) Alessandro Schmitz, 2012-10-05 17:16


Related issues

Related to TYPO3 Core - Bug #44745: Slider split preview uses only part of the available height Closed 2013-01-23
Related to TYPO3 Core - Bug #78736: IFrame has no height in Workspace preview in multidomain installation Closed 2016-11-17

History

#1 Updated by Steffen Gebert about 7 years ago

  • Status changed from New to Needs Feedback

Thanks for your report Allessandro!

Could you please check the most recent version of TYPO3, too? Could you have a look at the IE Developer Tools, whether JavaScript errors occur?

Thanks
Steffen

#2 Updated by Steffen Gebert about 7 years ago

  • Project changed from TYPO3 Core to Workspaces & Versioning

#3 Updated by Alessandro Schmitz about 7 years ago

Its still there in TYPO3 4.7.1 (currently dont have the newest version 4.7.7) and there are no JS errors.

#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.

#5 Updated by Michael Stucki almost 6 years ago

  • Category set to Workspaces

#6 Updated by Michael Stucki almost 6 years ago

  • Project changed from Workspaces & Versioning to TYPO3 Core
  • Category changed from Workspaces to Workspaces

#7 Updated by Alexander Opitz over 5 years ago

  • Is Regression set to No

Hi,

as this issue is very old. Does the problem still exists within newer versions of TYPO3 CMS (4.5.32 or 6.1.7)?
IMHO some IE issues are fixed in latest LTS update.

#8 Updated by Kaan Sanli over 5 years ago

Hi,

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.

#9 Updated by Alexander Opitz over 5 years ago

  • Subject changed from TYPO3-Workspaces Internet Explorer bug to TYPO3-Workspaces height of iframe to small
  • Status changed from Needs Feedback to New

#10 Updated by Mathias Schreiber almost 5 years ago

  • Target version set to 7.5

#11 Updated by Grigori Prokhorov over 4 years ago

Can confirm issue. iFrame default height of 150px gets recalculated several times - none of the times it actually fits. Can't we just make the height to be 100%?

#12 Updated by Benni Mack about 4 years ago

  • Target version changed from 7.5 to 7 LTS

#13 Updated by Mathias Schreiber about 4 years ago

  • Target version deleted (7 LTS)

#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.

Cheers,
Daniel

#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.

#16 Updated by Riccardo De Contardi over 2 years ago

  • Related to Bug #44745: Slider split preview uses only part of the available height added

#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

#18 Updated by Riccardo De Contardi about 2 years ago

  • Related to Bug #78736: IFrame has no height in Workspace preview in multidomain installation added

#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.

Also available in: Atom PDF