From 29aef8ae97d3db4701793fad953f3e7ae1c0adf8 Mon Sep 17 00:00:00 2001 From: "hyatt%netscape.com" Date: Mon, 5 Jul 1999 16:54:14 +0000 Subject: [PATCH] Will do intrinsic sizing when the window is really small (doesn't have to be 0, since Linux barfs on that). --- content/xul/document/src/nsXULDocument.cpp | 2 +- rdf/content/src/nsXULDocument.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/content/xul/document/src/nsXULDocument.cpp b/content/xul/document/src/nsXULDocument.cpp index 2b939d4c9165..ecb2bd3ba210 100644 --- a/content/xul/document/src/nsXULDocument.cpp +++ b/content/xul/document/src/nsXULDocument.cpp @@ -3974,7 +3974,7 @@ XULDocumentImpl::StartLayout(void) nsRect r; cx->GetVisibleArea(r); - if (r.width == 0 || r.height == 0) { + if (r.width < 5 || r.height < 5) { // Flow at an unconstrained width and height r.width = NS_UNCONSTRAINEDSIZE; r.height = NS_UNCONSTRAINEDSIZE; diff --git a/rdf/content/src/nsXULDocument.cpp b/rdf/content/src/nsXULDocument.cpp index 2b939d4c9165..ecb2bd3ba210 100644 --- a/rdf/content/src/nsXULDocument.cpp +++ b/rdf/content/src/nsXULDocument.cpp @@ -3974,7 +3974,7 @@ XULDocumentImpl::StartLayout(void) nsRect r; cx->GetVisibleArea(r); - if (r.width == 0 || r.height == 0) { + if (r.width < 5 || r.height < 5) { // Flow at an unconstrained width and height r.width = NS_UNCONSTRAINEDSIZE; r.height = NS_UNCONSTRAINEDSIZE;