Fix for bug 79961 - Resizing outliner column width makes other columns collapsed to minimum.

- moved frame-CaptureMouse(PR_TRUE) from first MouseMove() to MouseDown()
to catch first MouseMove()  event directly in splitter frame.

r=bryner, sr=blake, a=roc+moz
This commit is contained in:
varga%utcru.sk 2002-03-27 05:49:56 +00:00
parent 307d640548
commit d3a6ebdf0d

View File

@ -941,6 +941,8 @@ nsSplitterFrameInner::MouseDown(nsIDOMEvent* aMouseEvent)
//printf("Pressed mDragStartPx=%d\n",mDragStartPx);
mOuter->CaptureMouse(mOuter->mPresContext, PR_TRUE);
return NS_OK;
}
@ -958,7 +960,6 @@ nsSplitterFrameInner::MouseMove(nsIDOMEvent* aMouseEvent)
mOuter->mContent->SetAttr(kNameSpaceID_None, nsXULAtoms::state, NS_LITERAL_STRING("dragging"), PR_TRUE);
RemoveListener();
mOuter->CaptureMouse(mOuter->mPresContext, PR_TRUE);
mDragging = PR_TRUE;
return NS_OK;