Will do intrinsic sizing when the window is really small (doesn't have to be

0, since Linux barfs on that).
This commit is contained in:
hyatt%netscape.com 1999-07-05 16:54:14 +00:00
Родитель 01fcc007c0
Коммит 29aef8ae97
2 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -3974,7 +3974,7 @@ XULDocumentImpl::StartLayout(void)
nsRect r; nsRect r;
cx->GetVisibleArea(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 // Flow at an unconstrained width and height
r.width = NS_UNCONSTRAINEDSIZE; r.width = NS_UNCONSTRAINEDSIZE;
r.height = NS_UNCONSTRAINEDSIZE; r.height = NS_UNCONSTRAINEDSIZE;

Просмотреть файл

@ -3974,7 +3974,7 @@ XULDocumentImpl::StartLayout(void)
nsRect r; nsRect r;
cx->GetVisibleArea(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 // Flow at an unconstrained width and height
r.width = NS_UNCONSTRAINEDSIZE; r.width = NS_UNCONSTRAINEDSIZE;
r.height = NS_UNCONSTRAINEDSIZE; r.height = NS_UNCONSTRAINEDSIZE;