mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2024-12-30 10:26:58 +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 {
|
||||
rows: 1;
|
||||
resize: none;
|
||||
height: 1em;
|
||||
resize: none;
|
||||
font-size: 2.0rem;
|
||||
}
|
||||
|
||||
</style>
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue