update
This commit is contained in:
+1
-1
@@ -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`
|
||||
}
|
||||
},
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user