From 7f1b174ffce57b08c50e6de3f17aa731bf8d5795 Mon Sep 17 00:00:00 2001 From: "buster%netscape.com" Date: Mon, 5 Jun 2000 03:50:46 +0000 Subject: [PATCH] bug 36367 r=rods fix was to pass in the correct width during certain types of incremental reflows. --- layout/forms/nsComboboxControlFrame.cpp | 2 +- layout/html/forms/src/nsComboboxControlFrame.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/layout/forms/nsComboboxControlFrame.cpp b/layout/forms/nsComboboxControlFrame.cpp index e78a583893fc..8cf14395dac1 100644 --- a/layout/forms/nsComboboxControlFrame.cpp +++ b/layout/forms/nsComboboxControlFrame.cpp @@ -1306,7 +1306,7 @@ nsComboboxControlFrame::Reflow(nsIPresContext* aPresContext, if (targetFrame == mDisplayFrame) { nsresult rv = ReflowComboChildFrame(mDisplayFrame, aPresContext, aDesiredSize, aReflowState, aStatus, - aReflowState.availableWidth, + mCacheSize.width, aReflowState.availableHeight); NS_ASSERTION(aDesiredSize.width != kSizeNotSet, "aDesiredSize.width != kSizeNotSet"); NS_ASSERTION(aDesiredSize.height != kSizeNotSet, "aDesiredSize.height != kSizeNotSet"); diff --git a/layout/html/forms/src/nsComboboxControlFrame.cpp b/layout/html/forms/src/nsComboboxControlFrame.cpp index e78a583893fc..8cf14395dac1 100644 --- a/layout/html/forms/src/nsComboboxControlFrame.cpp +++ b/layout/html/forms/src/nsComboboxControlFrame.cpp @@ -1306,7 +1306,7 @@ nsComboboxControlFrame::Reflow(nsIPresContext* aPresContext, if (targetFrame == mDisplayFrame) { nsresult rv = ReflowComboChildFrame(mDisplayFrame, aPresContext, aDesiredSize, aReflowState, aStatus, - aReflowState.availableWidth, + mCacheSize.width, aReflowState.availableHeight); NS_ASSERTION(aDesiredSize.width != kSizeNotSet, "aDesiredSize.width != kSizeNotSet"); NS_ASSERTION(aDesiredSize.height != kSizeNotSet, "aDesiredSize.height != kSizeNotSet");