зеркало из https://github.com/mozilla/pjs.git
Keep the initial width and height from being 0. Set it to 1 instead.
This commit is contained in:
Родитель
9c764c8204
Коммит
0eab3ab67d
|
@ -498,8 +498,8 @@ nsAppShellService::CreateTopLevelWindow(nsIWebShellWindow *aParent,
|
||||||
|
|
||||||
if (aInitialWidth == NS_SIZETOCONTENT ||
|
if (aInitialWidth == NS_SIZETOCONTENT ||
|
||||||
aInitialHeight == NS_SIZETOCONTENT) {
|
aInitialHeight == NS_SIZETOCONTENT) {
|
||||||
aInitialWidth = 0;
|
aInitialWidth = 1;
|
||||||
aInitialHeight = 0;
|
aInitialHeight = 1;
|
||||||
showWindow = PR_FALSE; // Don't show until we have the intrinsic size figured out.
|
showWindow = PR_FALSE; // Don't show until we have the intrinsic size figured out.
|
||||||
window->SetIntrinsicallySized(PR_TRUE);
|
window->SetIntrinsicallySized(PR_TRUE);
|
||||||
}
|
}
|
||||||
|
@ -558,8 +558,8 @@ nsAppShellService::CreateDialogWindow(nsIWebShellWindow * aParent,
|
||||||
|
|
||||||
if (aInitialWidth == NS_SIZETOCONTENT ||
|
if (aInitialWidth == NS_SIZETOCONTENT ||
|
||||||
aInitialHeight == NS_SIZETOCONTENT) {
|
aInitialHeight == NS_SIZETOCONTENT) {
|
||||||
aInitialWidth = 0;
|
aInitialWidth = 1;
|
||||||
aInitialHeight = 0;
|
aInitialHeight = 1;
|
||||||
showWindow = PR_FALSE; // Don't show until we have the intrinsic size figured out.
|
showWindow = PR_FALSE; // Don't show until we have the intrinsic size figured out.
|
||||||
window->SetIntrinsicallySized(PR_TRUE);
|
window->SetIntrinsicallySized(PR_TRUE);
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче