mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-06 16:58:49 +01:00
This commit is contained in:
parent
68beb1f519
commit
8f8f2b6100
1 changed files with 5 additions and 1 deletions
|
|
@ -974,10 +974,14 @@ export class Gutter {
|
|||
element.querySelector("input").addEventListener("change", (event) => {
|
||||
const newHeight = ((event.target as HTMLInputElement).value || "420") + "px";
|
||||
(nodeElement as HTMLElement).style.height = newHeight;
|
||||
(nodeElement.firstElementChild as HTMLElement).style.height = newHeight;
|
||||
(nodeElement.firstElementChild.nextElementSibling as HTMLElement).style.height = newHeight;
|
||||
updateTransaction(protyle, id, nodeElement.outerHTML, html);
|
||||
html = nodeElement.outerHTML;
|
||||
event.stopPropagation();
|
||||
const chartInstance = echarts.getInstanceById(nodeElement.firstElementChild.nextElementSibling.getAttribute("_echarts_instance_"));
|
||||
if (chartInstance) {
|
||||
chartInstance.resize();
|
||||
}
|
||||
});
|
||||
}
|
||||
}, {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue