mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-18 22:26:30 +01:00
fix get-string dialog
This commit is contained in:
parent
af5c116a78
commit
01c7bcf9e3
2 changed files with 8 additions and 3 deletions
|
@ -77,8 +77,9 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
textarea.stringedit {
|
textarea.stringedit {
|
||||||
rows: 1;
|
height: 1em;
|
||||||
resize: none;
|
resize: none;
|
||||||
|
font-size: 2.0rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
|
|
|
@ -326,10 +326,14 @@ function setDivButtons(divid, buttons, proc, closure) {
|
||||||
function nbGetString(msg, dflt, proc, closure) {
|
function nbGetString(msg, dflt, proc, closure) {
|
||||||
let dlg = newDlgWMsg( msg );
|
let dlg = newDlgWMsg( msg );
|
||||||
|
|
||||||
|
let div = document.createElement('div');
|
||||||
|
div.classList.add('emscripten');
|
||||||
|
dlg.appendChild(div);
|
||||||
|
|
||||||
let tarea = document.createElement('textarea');
|
let tarea = document.createElement('textarea');
|
||||||
tarea.classList.add('stringedit');
|
tarea.classList.add('stringedit');
|
||||||
tarea.value = dflt;
|
tarea.value = dflt;
|
||||||
dlg.appendChild( tarea );
|
div.appendChild( tarea );
|
||||||
|
|
||||||
dismissed = function(str) {
|
dismissed = function(str) {
|
||||||
dlg.parentNode.removeChild(dlg);
|
dlg.parentNode.removeChild(dlg);
|
||||||
|
|
Loading…
Reference in a new issue