зеркало из https://github.com/mozilla/pjs.git
Fix for bug 171128. List of attachment is blank.
r=cavin,hewitt sr=sspitzer a=dbaron
This commit is contained in:
Родитель
df61a41e48
Коммит
9515f580c3
|
@ -1382,7 +1382,8 @@ nsListBoxBodyFrame::OnContentRemoved(nsIPresContext* aPresContext, nsIFrame* aCh
|
||||||
|
|
||||||
// if the row being removed is off-screen and above the top frame, we need to
|
// if the row being removed is off-screen and above the top frame, we need to
|
||||||
// adjust our top index and tell the scrollbar to shift up one row.
|
// adjust our top index and tell the scrollbar to shift up one row.
|
||||||
if (siblingIndex >= 0 && siblingIndex-1 <= mCurrentIndex) {
|
if (siblingIndex >= 0 && siblingIndex-1 < mCurrentIndex) {
|
||||||
|
NS_PRECONDITION(mCurrentIndex > 0, "mCurrentIndex > 0");
|
||||||
--mCurrentIndex;
|
--mCurrentIndex;
|
||||||
mYPosition = mCurrentIndex*mRowHeight;
|
mYPosition = mCurrentIndex*mRowHeight;
|
||||||
VerticalScroll(mYPosition);
|
VerticalScroll(mYPosition);
|
||||||
|
|
Загрузка…
Ссылка в новой задаче