Closed
Bug 1395160
Opened 9 years ago
Closed 8 years ago
Let live sample <iframe> resize to fit content
Categories
(developer.mozilla.org Graveyard :: Wiki pages, enhancement)
developer.mozilla.org Graveyard
Wiki pages
Tracking
(Not tracked)
RESOLVED
WONTFIX
People
(Reporter: sheppy, Unassigned)
References
Details
(Keywords: in-triage)
Currently, you have to provide a size for a live sample's <iframe> if the tiny default size isn't big enough. Unfortunately, much of the time, specifying a fixed size is inadequate. This is because:
(1) User settings can affect the sample size; font sizes, screen resolutions, etc can impact how much space a sample takes up. While to some extent CSS can mitigate this, that's not helpful when trying to create a simple example -- having to include CSS to force the size to be more reliable makes the sample larger and more involved than necessary.
(2) Many samples involve content that changes size over time. Perhaps the sample is of an object that gets bigger and smaller as the user manipulates a widget. Or maybe it involves a log of output as things occur. In these cases, the frame should be able to expand over time.
Comment 1•9 years ago
|
||
Just to moderate expectations... this is not currently possible across domains without jumping through some complicated hoops that would require us to edit every live sample.
Perhaps it would be useful to have some standard sizes which could be applied with a class?
Updated•8 years ago
|
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → WONTFIX
Updated•6 years ago
|
Product: developer.mozilla.org → developer.mozilla.org Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•