Skip to content

[Compatibility] Use off canvas offset instead of display none? #4

@majick777

Description

@majick777

Some responsive pages may need to set widths and heights dynamically via javascript.

Because Teleporter loads these in hidden iframes before fading them in, the display:none on the iframe might cause these calculations to return 0 and ruin the responsiveness of the display before it has faded in. (This assumption needs to be tested, as on the other hand, the browser might treat everything in the iframe as "visible" even though the iframe itself is hidden in te parent window.)

Proposed solution is similar to what is done for accessibility: offset the iframe position off-canvas so the width and heihts are calculated correctly... and then fade in when the page is loaded.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions