Skip to content

Open source website builder and Webflow alternative. Webstudio is an advanced visual builder that connects to any headless CMS, supports all CSS properties, and can be hosted anywhere, including with us.

no need for page scroll calculation since rendering outside

Oleg Isonen385ab8b57789
diff --git a/app/designer/features/workspace/canvas-tools/text-toolbar/text-toolbar.tsx b/app/designer/features/workspace/canvas-tools/text-toolbar/text-toolbar.tsx
index 7103873931..2b04a0e63f 100644
--- a/app/designer/features/workspace/canvas-tools/text-toolbar/text-toolbar.tsx
+++ b/app/designer/features/workspace/canvas-tools/text-toolbar/text-toolbar.tsx
@@ -36,8 +36,6 @@ const getPlacement = ({
align === "top"
? Math.max(selectionRect.y - selectionRect.height, 0)
: Math.max(selectionRect.y + selectionRect.height);
- // @todo this has to come from canvas
- top += window.pageYOffset;
return { top, left, marginBottom, marginTop, transform, visibility };
};