Reposition metatable to be always below snippet
Change-Id: Ibf9b7f26f8fb35f4acaf1c526553a00f70642a20
diff --git a/dev/js/src/match/info.js b/dev/js/src/match/info.js
index a6ccbec..d207867 100644
--- a/dev/js/src/match/info.js
+++ b/dev/js/src/match/info.js
@@ -282,6 +282,7 @@
},
+ // Add meta information to match
addMeta : function () {
var matchmeta = document.createElement('div');
// matchRefClass.create();
@@ -297,9 +298,14 @@
// Add metainfo to matchview
var metaElem = matchRefClass.create(this._match).element(metaInfo);
- this.element().appendChild(metaElem);
+ var elem = this.element();
- console.log(this.element());
+ elem.insertBefore(
+ metaElem,
+ elem.firstChild
+ );
+
+ console.log(elem);
};
},