diff --git a/mozilla/layout/forms/nsComboboxControlFrame.cpp b/mozilla/layout/forms/nsComboboxControlFrame.cpp index 10c4ef03735..3d04dc45765 100644 --- a/mozilla/layout/forms/nsComboboxControlFrame.cpp +++ b/mozilla/layout/forms/nsComboboxControlFrame.cpp @@ -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, diff --git a/mozilla/layout/html/forms/src/nsComboboxControlFrame.cpp b/mozilla/layout/html/forms/src/nsComboboxControlFrame.cpp index 10c4ef03735..3d04dc45765 100644 --- a/mozilla/layout/html/forms/src/nsComboboxControlFrame.cpp +++ b/mozilla/layout/html/forms/src/nsComboboxControlFrame.cpp @@ -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,