Fix for 118159. over-zealous scrollbar in outliner. r=dean_tessman@hotmail.com, sr=blake
git-svn-id: svn://10.0.0.236/trunk@111464 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
de290ed289
commit
110782faac
@ -841,11 +841,11 @@ nsresult nsOutlinerBodyFrame::CheckVerticalOverflow()
|
||||
|
||||
PRInt32 rowCount;
|
||||
mView->GetRowCount(&rowCount);
|
||||
if (!mVerticalOverflow && rowCount >= mPageCount) {
|
||||
if (!mVerticalOverflow && rowCount > mPageCount) {
|
||||
mVerticalOverflow = PR_TRUE;
|
||||
verticalOverflowChanged = PR_TRUE;
|
||||
}
|
||||
else if (mVerticalOverflow && rowCount < mPageCount) {
|
||||
else if (mVerticalOverflow && rowCount <= mPageCount) {
|
||||
mVerticalOverflow = PR_FALSE;
|
||||
verticalOverflowChanged = PR_TRUE;
|
||||
}
|
||||
|
||||
@ -841,11 +841,11 @@ nsresult nsOutlinerBodyFrame::CheckVerticalOverflow()
|
||||
|
||||
PRInt32 rowCount;
|
||||
mView->GetRowCount(&rowCount);
|
||||
if (!mVerticalOverflow && rowCount >= mPageCount) {
|
||||
if (!mVerticalOverflow && rowCount > mPageCount) {
|
||||
mVerticalOverflow = PR_TRUE;
|
||||
verticalOverflowChanged = PR_TRUE;
|
||||
}
|
||||
else if (mVerticalOverflow && rowCount < mPageCount) {
|
||||
else if (mVerticalOverflow && rowCount <= mPageCount) {
|
||||
mVerticalOverflow = PR_FALSE;
|
||||
verticalOverflowChanged = PR_TRUE;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user