mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-15 03:00:30 +00:00
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:
parent
307d640548
commit
d3a6ebdf0d
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user