mirror of
https://github.com/captbaritone/webamp.git
synced 2026-07-22 17:47:16 +00:00
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;`
This commit is contained in:
parent
b2113cec85
commit
02f48d235b
1 changed files with 1 additions and 1 deletions
|
|
@ -120,7 +120,7 @@ class WindowManager extends React.Component<Props> {
|
|||
|
||||
render() {
|
||||
const style: React.CSSProperties = {
|
||||
position: "absolute",
|
||||
position: "fixed",
|
||||
top: 0,
|
||||
left: 0
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue