[Webkit-unassigned] [Bug 38134] New: WebKit returns incorrect frame height

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Apr 26 12:03:05 PDT 2010


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

           Summary: WebKit returns incorrect frame height
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: All
        OS/Version: All
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: Frames
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: bero at arklinux.org


This is tested with QtWebKit only, but given QtWebKit calls normal-WebKit
functions to return the values, I believe it is not restricted to Qt.


In the following html code, displayed in a fixed size 768x974 window:


<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <title>test</title>
  </head>
  <body>
    <div>
      <iframe src="topNav.html" height="70px" width="100%" id="topnav"
scrolling="no" frameborder="0" marginwidth="0" style="border-bottom:3px double
#000000;"> </iframe>
      <iframe src="leftNav.html" height="100%" width="144px" id="leftnav"
scrolling="no" frameborder="0" marginwidth="0" style="border-right:1px solid
#000000;"> </iframe>
      <iframe src="cover.html" id="data" height="100%" width="590px"
scrolling="no" frameborder="0" marginwidth="0"> </iframe>
    </div>
  </body>
</html>


the height of the frame with ID "data" is reported as 974 (should be 893 --
full height minus the height taken away by topnav).

Arguably, the html code is bad by giving height="100%" for the data frame, but
given it is rendered correctly (as a 893px frame), that's what should be
returned.

Function used to query the height of the frame is QWebFrame::geometry() (at the
correct time, after the layout is completed).

-- 
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