[Webkit-unassigned] [Bug 60751] New: document.body.scrollHeight not updated correctly

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu May 12 22:50:16 PDT 2011


https://bugs.webkit.org/show_bug.cgi?id=60751

           Summary: document.body.scrollHeight not updated correctly
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: All
        OS/Version: All
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: HTML DOM
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: jonas at rodoni.se


I have small javascript to resize an Iframe after the content in it:
        this.resizeIframe = function() {
        var iframe = document.getElementById('pageFrame');
        // find the height of the internal page
        var the_height = iframe.contentWindow.document.body.scrollHeight;
        iframe.style.height = the_height + 'px';
    };

This works fine in ff/ie and also in chrome 12 as long as the iframe grows and the height is increased. But the scrollHeight never seems to be decreased, so if the ifram is loaded with a smaller/shorter page the iframe-height is not reduced.

Also see chromium bug 34224 which seems related
http://code.google.com/p/chromium/issues/detail?id=34224


version: Chrome/12.0.742.30 / AppleWebKit/534.30

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list