Bug 62384. Invalidate cached height when it's not equal to the current height. r+sr=roc, patch by Hideo Saito.

git-svn-id: svn://10.0.0.236/trunk@162928 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
roc+%cs.cmu.edu
2004-09-29 01:44:29 +00:00
parent 02d5f9491e
commit 7587dd2afc
2 changed files with 10 additions and 0 deletions

View File

@@ -1518,6 +1518,11 @@ nsComboboxControlFrame::Reflow(nsPresContext* aPresContext,
size.height = firstPassState.mComputedHeight;
}
if (mCacheSize.height != size.height) {
// if the cached height is not equal to the current height,
// the cached height is reset.
mCacheSize.height = kSizeNotSet;
}
// this reflows and makes and last minute adjustments
ReflowCombobox(aPresContext, firstPassState, aDesiredSize, aStatus,

View File

@@ -1518,6 +1518,11 @@ nsComboboxControlFrame::Reflow(nsPresContext* aPresContext,
size.height = firstPassState.mComputedHeight;
}
if (mCacheSize.height != size.height) {
// if the cached height is not equal to the current height,
// the cached height is reset.
mCacheSize.height = kSizeNotSet;
}
// this reflows and makes and last minute adjustments
ReflowCombobox(aPresContext, firstPassState, aDesiredSize, aStatus,