зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
01fcc007c0
Коммит
29aef8ae97
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче