Bug 201435. Make scrollbar 'curpos' truncation issue proper notifications. r+sr=bzbarsky

This commit is contained in:
roc+%cs.cmu.edu 2003-04-14 14:34:45 +00:00
parent 5e99cda65c
commit c0799e8e19

View File

@ -254,7 +254,7 @@ nsSliderFrame::AttributeChanged(nsIPresContext* aPresContext,
else if (current > max)
current = max;
// set the new position but don't notify anyone. We already know
// set the new position and notify observers
nsCOMPtr<nsIScrollbarFrame> scrollbarFrame(do_QueryInterface(scrollbarBox));
if (scrollbarFrame) {
nsCOMPtr<nsIScrollbarMediator> mediator;
@ -266,7 +266,7 @@ nsSliderFrame::AttributeChanged(nsIPresContext* aPresContext,
nsAutoString currentStr;
currentStr.AppendInt(current);
scrollbar->SetAttr(kNameSpaceID_None, nsXULAtoms::curpos, currentStr, PR_FALSE);
scrollbar->SetAttr(kNameSpaceID_None, nsXULAtoms::curpos, currentStr, PR_TRUE);
}
}