[Webkit-unassigned] [Bug 81208] New: innerHeight and Width returns wrong values when scaled and having non-overlay scrollbars

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Mar 15 04:26:32 PDT 2012


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

           Summary: innerHeight and Width returns wrong values when scaled
                    and having non-overlay scrollbars
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Unspecified
        OS/Version: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: HTML DOM
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: kenneth at webkit.org
                CC: allan.jensen at nokia.com


1136     long height = view->visibleContentRect(/* includeScrollbars */ true).height();
1137     InspectorInstrumentation::applyScreenHeightOverride(m_frame, &height);
1138     return static_cast<int>(height / (m_frame->pageZoomFactor() * m_frame->frameScaleFactor()));

Calculating back doesn't work in the case there is a scrollbar actually taking up space.

Example

viewport is 110 (100 pixels css contents, 10 pixels scrollbar)

content is scaled by 2.0, you have 50 pixels css content and 10 pixels scrollbar

(50 + 10) * 2 = 120 != 110

FrameView should really have a way to get the innerWidth and Height instead.

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