Skip to content

Commit

Permalink
use h-screen instead of inner-height
Browse files Browse the repository at this point in the history
  • Loading branch information
madil4 committed Nov 3, 2023
1 parent 7cc8fc0 commit 7c291cb
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/Layouter/Layouter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ export function Layouter(props: LayouterProps) {
const c = children(() => props.children).toArray();

onMount(() => {
container.style.height = `${window.innerHeight}px`;

if (!props.hideEditor) {
let x = 0;
let dx = 0;
Expand Down Expand Up @@ -53,7 +51,7 @@ export function Layouter(props: LayouterProps) {
});

return (
<div class="flex flex-col-reverse md:flex-row" ref={container!}>
<div class="flex flex-col-reverse md:flex-row h-screen" ref={container!}>
<Show
when={props.hideEditor}
fallback={
Expand Down

0 comments on commit 7c291cb

Please sign in to comment.