fix get-string dialog

This commit is contained in:
Eric House 2021-03-10 20:33:24 -08:00
parent af5c116a78
commit 01c7bcf9e3
2 changed files with 8 additions and 3 deletions

View file

@ -77,8 +77,9 @@
}
textarea.stringedit {
rows: 1;
resize: none;
height: 1em;
resize: none;
font-size: 2.0rem;
}
</style>

View file

@ -326,10 +326,14 @@ function setDivButtons(divid, buttons, proc, closure) {
function nbGetString(msg, dflt, proc, closure) {
let dlg = newDlgWMsg( msg );
let div = document.createElement('div');
div.classList.add('emscripten');
dlg.appendChild(div);
let tarea = document.createElement('textarea');
tarea.classList.add('stringedit');
tarea.value = dflt;
dlg.appendChild( tarea );
div.appendChild( tarea );
dismissed = function(str) {
dlg.parentNode.removeChild(dlg);