summaryrefslogtreecommitdiff
path: root/gdk
diff options
context:
space:
mode:
Diffstat (limited to 'gdk')
-rw-r--r--gdk/broadway/broadway.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/gdk/broadway/broadway.js b/gdk/broadway/broadway.js
index 5474960bc7..4e15ecd3ab 100644
--- a/gdk/broadway/broadway.js
+++ b/gdk/broadway/broadway.js
@@ -2,13 +2,14 @@
var logDiv = null;
function log(str) {
if (!logDiv) {
- logDiv = document.createElement('div');
+ logDiv = document.createElement('pre');
document.body.appendChild(logDiv);
logDiv.style["position"] = "absolute";
logDiv.style["right"] = "0px";
+ logDiv.style["font-size"] = "small";
}
- logDiv.appendChild(document.createTextNode(str));
- logDiv.appendChild(document.createElement('br'));
+ logDiv.insertBefore(document.createElement('br'), logDiv.firstChild);
+ logDiv.insertBefore(document.createTextNode(str), logDiv.firstChild);
}
function getStackTrace()