mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 03:45:46 +00:00
scroll bar is drawing, nothing else
This commit is contained in:
parent
469dccd64d
commit
66e150acbc
@ -123,8 +123,19 @@ void nsScrollbar::Create(nsNativeWidget aParent,
|
||||
nsIToolkit *aToolkit,
|
||||
nsWidgetInitData *aInitData)
|
||||
{
|
||||
WindowPtr theWindow;
|
||||
nsWindow *theNsWindow=nsnull;
|
||||
|
||||
NS_ERROR("This Widget must not use this Create method");
|
||||
if(0!=aParent)
|
||||
{
|
||||
theWindow = (GrafPtr)aParent;
|
||||
theNsWindow = (nsWindow*)(((WindowPeek)theWindow)->refCon);
|
||||
}
|
||||
|
||||
if(nsnull!=theNsWindow)
|
||||
Create(theNsWindow, aRect,aHandleEventFunction, aContext, aAppShell, aToolkit, aInitData);
|
||||
|
||||
//NS_ERROR("This Widget must not use this Create method");
|
||||
|
||||
}
|
||||
|
||||
@ -198,7 +209,7 @@ PRBool result;
|
||||
if(mWidgetArmed)
|
||||
{
|
||||
|
||||
/*this->SetPosition();*/NS_ERROR("Get mouse loc and set position");
|
||||
//this->SetPosition();
|
||||
this->DrawWidget();
|
||||
}
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user