added check so it doesn't do a reset on the incremental reflow

r=dcone bug=none
This commit is contained in:
rods%netscape.com 2000-01-28 15:04:19 +00:00
parent c56fe2a751
commit 8dd52cec3d
2 changed files with 2 additions and 2 deletions

View File

@ -314,7 +314,7 @@ nsListControlFrame::Reflow(nsIPresContext* aPresContext,
// If all the content and frames are here
// then initialize it before reflow
if (mIsAllContentHere && !mHasBeenInitialized) {
if ((mIsAllContentHere && !mHasBeenInitialized) && aReflowState.reason != eReflowReason_Initial) {
if (PR_FALSE == mIsAllFramesHere) {
CheckIfAllFramesHere();
}

View File

@ -314,7 +314,7 @@ nsListControlFrame::Reflow(nsIPresContext* aPresContext,
// If all the content and frames are here
// then initialize it before reflow
if (mIsAllContentHere && !mHasBeenInitialized) {
if ((mIsAllContentHere && !mHasBeenInitialized) && aReflowState.reason != eReflowReason_Initial) {
if (PR_FALSE == mIsAllFramesHere) {
CheckIfAllFramesHere();
}