Closed Bug 502446 Opened 15 years ago Closed 8 years ago

changing property height ( Iframe) few times gets only change the first one one

Categories

(Core :: DOM: Core & HTML, defect)

1.9.1 Branch
defect
Not set
normal

Tracking

()

RESOLVED INCOMPLETE

People

(Reporter: aalvareztic, Unassigned)

References

()

Details

(Keywords: regression, testcase)

User-Agent:       Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; es-ES; rv:1.9.1) Gecko/20090624 Firefox/3.5
Build Identifier: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; es-ES; rv:1.9.1) Gecko/20090624 Firefox/3.5

I need to resize many iframes beacase use AJAX in all of the inside html pages.

If Ajax don´t return rows i don´t need to resize but many time Ajax return many informatión and need to resize de Iframe that contain it.

In this situatión the program can call 2 or 3 times a JS function that calculate the page Height and set it to the iframe that contain it.

Firefox version < 3.5 works perfectly but with >= 3.5 fail :-/

Its curious to see if i do an alert ('hello') before every change of height properti of the iframe the iframe change !!!! :-).

We things the problem is new javascript engeniere is caching the property but not sure.

Thanks in advance



Reproducible: Always
Confirmed on Windows Vista, latest trunk. Regression range appears to be: http://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=2e7f03bc1820&tochange=07afef6cd29c
Blocks: 433533
Status: UNCONFIRMED → NEW
Component: General → DOM: Core & HTML
Ever confirmed: true
Keywords: regression, testcase
OS: Mac OS X → All
Product: Firefox → Core
QA Contact: general → general
Hardware: x86 → All
Version: unspecified → 1.9.1 Branch
A *minimal* testcase would be very useful here.
...because I couldn't write one immediately.
http://mozilla.pettay.fi/moztests/iframe_height.html works fine here.
It tests both .height and setAttribute('height', ...)
(In reply to comment #0)
> In this situatión the program can call 2 or 3 times a JS function that
> calculate the page Height and set it to the iframe that contain it.

Which JS function is that? 
Like Olli said, if you could come up with a minimal testcase that shows the problem, that would be great.

With current trunk build I get as value "350px" for the relevant iframe and "387" for Firefox3.0.x as the height value.
try to login http://www.n2bsolutions.com:8080/ss_dev
user: admin
pass: acr0p0l1s

try to see it using firefox < 3.5 
and then with 3.5 

The "Agenda" ... the calendar appears cutted with firefox 3.5 :-/
the problem --> no change iframe .height property 
if wait some seconds or do "Alert" s to call js functions that change it ... it works!! 

Thanks a lots!!
Antonio, could you please attach a minimal testcase.
I cannot reproduce a problem with the height property or the height attribute.
Link in comment 5 is not accessible.
Resolving as incomplete; fee free to reopen if the problem can be reproduced on a current build. 
Please provided updated test case/steps to reproduce.
Version 	47.0.1
Build ID 	20160623154057
User Agent 	Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:47.0) Gecko/20100101 Firefox/47.0
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.