Open Bug 307522 Opened 16 years ago Updated 13 years ago

iframe sizing attributes (height, width...) do not apply dynamically

Categories

(Core :: XUL, defect)

x86
Linux
defect
Not set
normal

Tracking

()

UNCONFIRMED

People

(Reporter: jym, Unassigned)

References

(Depends on 1 open bug)

Details

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6

When you use Javascript to set the height, width and similar attributes on an
iframe XUL object it does not produce any change. Nonetheless, when you delete
corresponding CSS properties from the chrome://global/skin/global.css style
sheet after having set the element's attributes, it is suddenly refreshed and
the expected size appears.

This bug seems to be related to bug 66660.

This looks like Firefox does not recalculate the dimensions of the iframe
element when you touch its sizing attributes.

Reproducible: Always

Steps to Reproduce:
1. Create a test file with an iframe in it.
2. Load it into DOM Inspector.
3. Modify the height attribute while flex=0. Nothing happens.
4. Then delete the height CSS property of the above-mentioned style sheet. The
height is applied.
Could you please provide a simple testcase for this?
Core - XP toolkit/Widgets:XUL  ?
Component: General → XP Toolkit/Widgets: XUL
Product: Firefox → Core
QA Contact: general → xptoolkit.xul
Version: unspecified → Trunk
This is because XUL doesn't style map attributes (see bug 216838).
Depends on: 216838
Component: XP Toolkit/Widgets: XUL → XUL
QA Contact: xptoolkit.xul → xptoolkit.widgets
You need to log in before you can comment on or make changes to this bug.