remove obsolete code, update doc

This commit is contained in:
Tom Free
2022-07-17 14:09:58 +02:00
parent 4ca59dcc5c
commit 3e7aa3d762
2 changed files with 5 additions and 30 deletions

View File

@@ -37,10 +37,7 @@ const App = () => {
};
window.addEventListener("resize", onResize);
// ensure that resize is also called for split creation and deletion
// not really the problem. problem is saved appState!
// self.$renderElement.addEventListener("resize", onResize);
return () => window.removeEventListener("resize", onResize);
}, [excalidrawWrapperRef]);
@@ -53,7 +50,7 @@ const App = () => {
className: "excalidraw-wrapper",
ref: excalidrawWrapperRef
},
React.createElement(Excalidraw.default, {
React.createElement(ExcalidrawLib.Excalidraw, {
ref: excalidrawRef,
width: dimensions.width,
height: dimensions.height,