Add comment about importance of view sizing. b=330732 r+sr=roc

This commit is contained in:
dbaron%dbaron.org 2006-03-23 00:11:43 +00:00
Родитель 94d535ffde
Коммит 9087a4feca
1 изменённых файлов: 3 добавлений и 0 удалений

Просмотреть файл

@ -677,6 +677,9 @@ nsHTMLScrollFrame::PlaceScrollArea(const ScrollReflowState& aState)
scrolledArea.UnionRect(mInner.GetScrolledRect(aState.mScrollPortRect.Size()), scrolledArea.UnionRect(mInner.GetScrolledRect(aState.mScrollPortRect.Size()),
nsRect(nsPoint(0,0), 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(), nsContainerFrame::SyncFrameViewAfterReflow(scrolledFrame->GetPresContext(),
scrolledFrame, scrolledFrame,
scrolledView, scrolledView,