mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-11 20:35:50 +00:00
fix the size problem
This commit is contained in:
parent
87a17df6fd
commit
8cd76a3947
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user