Fixed positioning of horizontal scrollbar to be inside of the control

rect, and added missing curly braces around if stmt and else clause
This commit is contained in:
troy%netscape.com 1998-10-28 06:12:36 +00:00
Родитель ddf746506e
Коммит 0e721ffef3
1 изменённых файлов: 5 добавлений и 1 удалений

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

@ -549,7 +549,7 @@ NS_IMETHODIMP nsScrollingView :: SetDimensions(nscoord width, nscoord height, PR
nsSize sbSize;
mHScrollBarView->GetDimensions(&sbSize.width, &sbSize.height);
mHScrollBarView->SetBounds(0, clipRect.YMost(), clipRect.width,
mHScrollBarView->SetBounds(clipRect.x, clipRect.YMost(), clipRect.width,
sbSize.height, aPaint);
}
@ -989,9 +989,13 @@ NS_IMETHODIMP nsScrollingView :: ComputeContainerSize()
if (((mSizeX > controlRect.width) &&
(mScrollPref != nsScrollPreference_kNeverScroll)) ||
(mScrollPref == nsScrollPreference_kAlwaysScroll))
{
scrollh->Release(); //DO NOT USE NS_RELEASE()! MMP
}
else
{
NS_RELEASE(scrollh); //MUST USE NS_RELEASE()! MMP
}
}
NS_RELEASE(win);