removed conditional calling of view->SetDimensions() in SizeTo().

This commit is contained in:
michaelp 1998-04-23 21:51:03 +00:00
parent 22f96a82ef
commit bf7e14549f

View File

@ -273,7 +273,13 @@ NS_METHOD nsFrame::MoveTo(nscoord aX, nscoord aY)
NS_METHOD nsFrame::SizeTo(nscoord aWidth, nscoord aHeight)
{
if ((aWidth != mRect.width) || (aHeight != mRect.height)) {
//I have commented out this if test since we really need to
//always pass the fact that a resize was attempted to the
//view system. Today is 23-apr-98. If this change still looks
//good on or after 23-may-98, I'll kill the commented code
//altogether. Pretty scientific, huh? MMP
// if ((aWidth != mRect.width) || (aHeight != mRect.height)) {
mRect.width = aWidth;
mRect.height = aHeight;
@ -281,7 +287,7 @@ NS_METHOD nsFrame::SizeTo(nscoord aWidth, nscoord aHeight)
if (nsnull != mView) {
mView->SetDimensions(aWidth, aHeight);
}
}
// }
return NS_OK;
}