1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-21 22:17:59 +01:00

autosize multiline widget

This commit is contained in:
Martin Stubenschrott
2007-07-01 11:04:02 +00:00
parent aa6c8b8a40
commit cccd74c487
2 changed files with 6 additions and 2 deletions

View File

@@ -141,6 +141,9 @@ function CommandLine() //{{{
multiline_widget.collapsed = false;
cmd = cmd.replace(/\n|\\n/g, "<br/>") + "<br/><span style=\"color: green;\">Press ENTER or type command to continue</span>";
multiline_widget.contentDocument.body.innerHTML = cmd;
// size according to content -- TODO: if too large, leave a scrollbar)
multiline_widget.style.height = multiline_widget.contentDocument.height + "px";
}
function addToHistory(str)