fix the size problem

This commit is contained in:
dcone%netscape.com 1998-10-07 15:12:57 +00:00
parent 87a17df6fd
commit 8cd76a3947
2 changed files with 8 additions and 6 deletions

View File

@ -209,7 +209,8 @@ PRBool result;
if( mMouseDownInScroll )
{
DrawWidget();
mWidgetArmed = PR_TRUE;
//mWidgetArmed = PR_TRUE;
mWidgetArmed = PR_FALSE;
}
result = nsWindow::DispatchMouseEvent(aEvent);
break;
@ -255,16 +256,17 @@ RgnHandle thergn;
::ClipRect(&macRect);
::PenNormal();
::RGBForeColor(&blackcolor);
// Frame the general scrollbar
::FrameRect(&macRect);
DrawThumb(PR_FALSE);
::RGBForeColor(&blackcolor);
::PenSize(1,1);
::SetClip(thergn);
::SetOrigin(0,0);
::SetPort(theport);
DrawThumb(PR_FALSE);
}
//-------------------------------------------------------------------------
@ -320,7 +322,7 @@ RgnHandle thergn;
::EraseRect(&macThumbRect);
else
{
::RGBForeColor(&redcolor);
::RGBForeColor(&blackcolor);
::PaintRect(&macThumbRect);
}