make the prompt and alert dialogs resize to content.

fix by davidm, r=sspitzer, bug #15815
This commit is contained in:
sspitzer%netscape.com 1999-10-08 04:51:19 +00:00
Родитель 0c3a74b8be
Коммит 2753a0c1ec
1 изменённых файлов: 6 добавлений и 1 удалений

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

@ -192,6 +192,10 @@ function commonDialogOnLoad()
// set the pressed button to cancel to handle the case where the close box is pressed // set the pressed button to cancel to handle the case where the close box is pressed
param.SetInt(0, 1 ); param.SetInt(0, 1 );
// resize the window to the content
window.sizeToContent();
// Move to the right location // Move to the right location
moveToAlertPosition(); moveToAlertPosition();
} }
@ -245,3 +249,4 @@ function commonDialogOnButton3()
param.SetInt(0, 3 ); param.SetInt(0, 3 );
return true; return true;
} }