зеркало из https://github.com/mozilla/pjs.git
Add comment about importance of view sizing. b=330732 r+sr=roc
This commit is contained in:
Родитель
94d535ffde
Коммит
9087a4feca
|
@ -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,
|
||||||
|
|
Загрузка…
Ссылка в новой задаче