update
This commit is contained in:
+3
-3
@@ -1516,9 +1516,9 @@
|
||||
auto_height_node_before_update: function (node) {
|
||||
const topic = node.topic
|
||||
if (!!topic) {
|
||||
const lines = topic.split('\n').length
|
||||
const view_data = node._data.view;
|
||||
const element = view_data.element;
|
||||
const lines = topic.includes('<br/>') ? topic.split('<br/>').length : topic.split('\n').length
|
||||
const view_data = node._data.view
|
||||
const element = view_data.element
|
||||
const height = (lines * 12 + 14)
|
||||
element.style.height = `${height}px`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user