From 96f6c74ecbec08914985ddc5cf7c03203ccbb9ab Mon Sep 17 00:00:00 2001 From: Sidharth Vinod Date: Sun, 16 May 2021 20:53:06 +0530 Subject: [PATCH] Editor --- src/lib/Editor/index.svelte | 20 +++++--------------- 1 file changed, 5 insertions(+), 15 deletions(-) diff --git a/src/lib/Editor/index.svelte b/src/lib/Editor/index.svelte index 4b8d3211..50762a3e 100644 --- a/src/lib/Editor/index.svelte +++ b/src/lib/Editor/index.svelte @@ -61,10 +61,10 @@ text: editor.getValue() }); }); - // editor.layout({ - // height: divEl.offsetHeight, - // width: divEl.offsetWidth - // }); + editor.layout({ + height: divEl.parentElement.offsetHeight, + width: divEl.offsetWidth + }); const resizeObserver = new ResizeObserver((entries) => { editor.layout({ height: entries[0].contentRect.height, @@ -78,14 +78,4 @@ }); -
- - +