From 9087a4feca008175187949be8b4b7baac6f74e49 Mon Sep 17 00:00:00 2001 From: "dbaron%dbaron.org" Date: Thu, 23 Mar 2006 00:11:43 +0000 Subject: [PATCH] Add comment about importance of view sizing. b=330732 r+sr=roc --- layout/generic/nsGfxScrollFrame.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/layout/generic/nsGfxScrollFrame.cpp b/layout/generic/nsGfxScrollFrame.cpp index 30c2bbda535..ebcf839ac39 100644 --- a/layout/generic/nsGfxScrollFrame.cpp +++ b/layout/generic/nsGfxScrollFrame.cpp @@ -677,6 +677,9 @@ nsHTMLScrollFrame::PlaceScrollArea(const ScrollReflowState& aState) scrolledArea.UnionRect(mInner.GetScrolledRect(aState.mScrollPortRect.Size()), nsRect(nsPoint(0,0), aState.mScrollPortRect.Size())); + // Note that making the view *exactly* the size of the scrolled area + // is critical, since the view scrolling code uses the size of the + // scrolled view to clamp scroll requests. nsContainerFrame::SyncFrameViewAfterReflow(scrolledFrame->GetPresContext(), scrolledFrame, scrolledView,