From 83783e6ca8cc198e0f8d2e6f50901fc0d2ca9aac Mon Sep 17 00:00:00 2001 From: aqu415 Date: Tue, 22 Mar 2022 11:14:30 +0800 Subject: [PATCH] update --- static/js/jsmind.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/static/js/jsmind.js b/static/js/jsmind.js index 821d05c..8340347 100644 --- a/static/js/jsmind.js +++ b/static/js/jsmind.js @@ -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('
') ? topic.split('
').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` }