mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 393665 Fix crash regression from bug 306990 r=Enn sr+a=roc
This commit is contained in:
parent
7a32f6e43f
commit
a57ab3e7dc
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user