nmbug.js: Insert the dialog at the beginning of body
authorW. Trevor King <wking@tremily.us>
Mon, 22 Sep 2014 02:52:13 +0000 (19:52 -0700)
committerW. Trevor King <wking@tremily.us>
Mon, 22 Sep 2014 14:08:51 +0000 (07:08 -0700)
Instead of at the end.  I haven't tested this carefully, but in my
vague memories it seemed to do a better job of positioning the dialog
near the top of the frame.

nmbug.js

index 417ce4200c95df553bb8799a98deb7c84d33a269..daf61205b28c090ef302e22810a124a39fedc3b3 100644 (file)
--- a/nmbug.js
+++ b/nmbug.js
@@ -130,7 +130,7 @@ nmbug = {
                };
                dialog.appendChild(close);
 
-               frame.document.body.appendChild(dialog);
+               frame.document.body.insertBefore(dialog, frame.document.body.firstChild);
 
                dialog.show();
        },