Tresjs / tres

Declarative ThreeJS using Vue Components

Home Page:https://tresjs.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

empty Canvas keeps expanding infinitely vertically in CSS

baumi951 opened this issue · comments

Describe the bug

a4

When i have a simple canvas with Vue Router and a add an empty canvas it keeps expanding forever downwards.

I created a git repo where you can reproduce the bug.

It only happs in portait (smartphone) size of the window.

Quick Workarounds:

  • Wrap the Canvas into a div to stop the problem

image

Reproduction

https://github.com/baumi951/problem1

Steps to reproduce

  • Open the git repo (in github codespace)
  • npm run dev
  • move window to smartphone size
  • press the link "ThreeView"
  • You can see the size keeps expanding

System Info

Chrome Browser

Used Package Manager

npm

Code of Conduct

The TresCanvas will take the height of its direct parent, so unless you use a window-size prop, set some styles to the parent so it doesn't grow infinite.