зеркало из https://github.com/mozilla/pjs.git
make the prompt and alert dialogs resize to content.
fix by davidm, r=sspitzer, bug #15815
This commit is contained in:
Родитель
0c3a74b8be
Коммит
2753a0c1ec
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче