Bug 393665 Fix crash regression from bug 306990 r=Enn sr+a=roc

This commit is contained in:
neil@parkwaycc.co.uk 2007-08-27 02:51:23 -07:00
parent 7a32f6e43f
commit a57ab3e7dc

View File

@ -2443,16 +2443,16 @@ nsTreeBodyFrame::CalcHorzWidth(const ScrollParts& aParts)
width = 0;
}
// If no horz scrolling periphery is present, then just
// return the width of the columns
// If no horz scrolling periphery is present, then just return our width
if (width == 0) {
width = aParts.mColumnsFrame->GetRect().width;
mAdjustWidth = 0;
width = mRect.width;
} else {
// Compute the adjustment to the last column. This varies depending on the
// visibility of the columnpicker and the scrollbar.
mAdjustWidth = mRect.width - aParts.mColumnsFrame->GetRect().width;
}
// Compute the adjustment to the last column. This varies depending on the
// visibility of the columnpicker and the scrollbar.
mAdjustWidth = mRect.width - aParts.mColumnsFrame->GetRect().width;
return width;
}