From: W. Trevor King Date: Mon, 22 Sep 2014 02:52:13 +0000 (-0700) Subject: nmbug.js: Insert the dialog at the beginning of body X-Git-Tag: v0.1.0~11 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=88b16cf7fd44cff817d8c8df8df8445437baa7eb;p=nmhive.git nmbug.js: Insert the dialog at the beginning of body 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. --- diff --git a/nmbug.js b/nmbug.js index 417ce42..daf6120 100644 --- 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(); },