diff --git a/static/js/jsmind.js b/static/js/jsmind.js index 095c0b6..821d05c 100644 --- a/static/js/jsmind.js +++ b/static/js/jsmind.js @@ -1519,7 +1519,7 @@ const lines = topic.split('\n').length const view_data = node._data.view; const element = view_data.element; - const height = (lines * 12 + 20) + const height = (lines * 12 + 14) element.style.height = `${height}px` } }, diff --git a/static/js/jsmind.menu.js b/static/js/jsmind.menu.js index 716217b..0384ad5 100644 --- a/static/js/jsmind.menu.js +++ b/static/js/jsmind.menu.js @@ -365,6 +365,7 @@ var ncs = getComputedStyle(element) scope.e_editor.value = topic scope.e_editor.style.width = (element.clientWidth - parseInt(ncs.getPropertyValue('padding-left')) - parseInt(ncs.getPropertyValue('padding-right'))) + 'px' + scope.e_editor.style.height = (element.clientHeight - parseInt(ncs.getPropertyValue('padding-top')) - parseInt(ncs.getPropertyValue('padding-bottom'))) + 'px' element.innerHTML = '' element.appendChild(scope.e_editor) element.style.zIndex = 5