Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: Unexpected Height during Initialization Pixi App #10209

Closed
cqh963852 opened this issue Feb 13, 2024 · 1 comment
Closed

Bug: Unexpected Height during Initialization Pixi App #10209

cqh963852 opened this issue Feb 13, 2024 · 1 comment

Comments

@cqh963852
Copy link

cqh963852 commented Feb 13, 2024

Current Behavior

image

I have set maxHeight:200 to resizeTo Element. But Height at initial still 600px.

after resize. It comes to 200.

Expected Behavior

Init canvas height to resizeTo Element's height.

Steps to Reproduce

image

The Way I init pixijs in React Strict Mode.

Set maxHeight:200 to container.

Environment

  • pixi.js version: 8.0.0-rc.6
  • Browser & Version: chrome 121.0.6167.161
  • OS & Version: WSL2 Ubuntu 22.04

Possible Solution

No response

Additional Information

No response

@cqh963852 cqh963852 changed the title Bug: Bug: Unexpected Height during Initialization Pixi App Feb 13, 2024
@cqh963852
Copy link
Author

It is not a pixijs bug. https://www.pixiplayground.com/#/edit/idxN-y-bD5e_VB-vEyT7w

It seems that the HTML element corresponding to react has no height.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant