From 02f48d235be1c53c2124fb8e48571a068eca6e7a Mon Sep 17 00:00:00 2001 From: Jordan Eldredge Date: Wed, 3 Oct 2018 14:58:05 -0700 Subject: [PATCH] Use position fixed to position windows This ensures that their position does not influence the size of the window. Before the scroll size of the browser window was expanding to contain our webamp windows, which meant we could never measure the natural size of the window to position ourselves within it. Thanks to @1j01 for the idea to try `position: fixed;` --- js/components/WindowManager.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/components/WindowManager.tsx b/js/components/WindowManager.tsx index c6a95a32..891a81d7 100644 --- a/js/components/WindowManager.tsx +++ b/js/components/WindowManager.tsx @@ -120,7 +120,7 @@ class WindowManager extends React.Component { render() { const style: React.CSSProperties = { - position: "absolute", + position: "fixed", top: 0, left: 0 };