Fixed logic that determines whether there's currently a visible vertical
scrollbar git-svn-id: svn://10.0.0.236/trunk@19161 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -299,9 +299,19 @@ nsScrollFrame::Reflow(nsIPresContext& aPresContext,
|
||||
// we must give the frame being reflowed the same amount of available
|
||||
// width; otherwise, it's not only just an incremental reflow but also
|
||||
// a resize reflow
|
||||
nsSize oldScrollSize(mRect.width, mRect.height);
|
||||
nsSize kidSize;
|
||||
|
||||
kidFrame->GetSize(kidSize);
|
||||
if (kidSize.height > scrollAreaSize.height) {
|
||||
oldScrollSize.width -= border.left + border.right;
|
||||
oldScrollSize.height -= border.top + border.bottom;
|
||||
|
||||
if (kidSize.width > oldScrollSize.width) {
|
||||
// Horizontal scrollbar is showing
|
||||
oldScrollSize.height -= NSToCoordRound(sbHeight);
|
||||
}
|
||||
|
||||
if (kidSize.height > oldScrollSize.height) {
|
||||
roomForVerticalScrollbar = PR_TRUE;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user