msg
This commit is contained in:
+5
-5
@@ -1508,13 +1508,11 @@
|
||||
auto_height_node_before_update: function (node) {
|
||||
const topic = node.topic
|
||||
if (!!topic) {
|
||||
const length = topic.length
|
||||
const lines = length / 40
|
||||
|
||||
const lines = topic.split('\n').length
|
||||
const view_data = node._data.view;
|
||||
const element = view_data.element;
|
||||
|
||||
element.style.height = '100px'
|
||||
const height = (lines * 12 + 20)
|
||||
element.style.height = `${height}px`
|
||||
}
|
||||
},
|
||||
|
||||
@@ -2419,6 +2417,7 @@
|
||||
this.e_panel.appendChild(this.e_nodes);
|
||||
|
||||
this.e_editor.className = 'jsmind-editor';
|
||||
this.e_editor.style.fontSize = '11px';
|
||||
// this.e_editor.type = 'text';
|
||||
|
||||
this.actualZoom = 1;
|
||||
@@ -2552,6 +2551,7 @@
|
||||
$t(d_e, '-');
|
||||
d_e.setAttribute('nodeid', node.id);
|
||||
d_e.style.visibility = 'hidden';
|
||||
d.style.minWidth = '70px'
|
||||
parent_node.appendChild(d_e);
|
||||
view_data.expander = d_e;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user