diff --git a/include/actions.js b/include/actions.js index d6e60aef..2ec7aaf6 100644 --- a/include/actions.js +++ b/include/actions.js @@ -778,7 +778,7 @@ CodeBootExecPointBubble.prototype.attachTo = function (elem, html) { var tip = tippy(elem, { appendTo: bubble.vm.root, allowHTML: true, - placement: 'bottom-start', + placement: 'bottom-end', maxWidth: 9999, trigger: 'manual', hideOnClick: false, diff --git a/include/codeboot.js b/include/codeboot.js index 18370f28..28a08fa4 100644 --- a/include/codeboot.js +++ b/include/codeboot.js @@ -134,8 +134,6 @@ function CodeBootVM(cb, root, opts) { vm.lastExecEvent = 'stop'; - //vm.alerts = undefined; - vm.repl = null; vm.lastAST = null; @@ -165,9 +163,9 @@ function CodeBootVM(cb, root, opts) { vm.setLang(id_and_level); - vm.initRoot(); + var initLast = vm.initRoot(); - //vm.alerts = document.getElementById('alerts'); + vm.initUI(); vm.setLangUI(); @@ -196,6 +194,8 @@ function CodeBootVM(cb, root, opts) { ? opts.animationSpeed : (root.getAttribute('data-cb-animation-speed') || 'normal')); + + initLast(); }; CodeBootVM.prototype.initUI = function () { @@ -539,7 +539,7 @@ CodeBootVM.prototype.consoleHTML = function (display) { var vm = this; return '\ -
\ + -