fix: refresh wysiwyg position on canvas resize (#3008)

This commit is contained in:
David Luzar
2021-02-11 12:24:26 +01:00
committed by GitHub
parent 4fdddb518a
commit 4b253c7362
4 changed files with 27 additions and 3 deletions

View File

@ -1551,6 +1551,7 @@ class App extends React.Component<ExcalidrawProps, AppState> {
textWysiwyg({
id: element.id,
appState: this.state,
canvas: this.canvas,
getViewportCoords: (x, y) => {
const { x: viewportX, y: viewportY } = sceneCoordsToViewportCoords(
{