decentraland / decentraland/creator-hub

Viewport height ignored, only width is used

Open
#179 0 comments 0 reactions 0 assignees View on GitHub
bug requires validation unity
Dominant language
TypeScript
Stars
7
Forks
14
Avg merge
2d 8h
Merged PRs (30d)
44

Description

This was reported by Sergey from Dappcraft.

'vh' tagged values are calculated incorrectly - the result includes both viewport width and height, but obviously should respect only height.
'vw' works fine, tho.

Both 'vh' and UiCanvasInformation component are unresponsive to viewport height change event, i.e. they got updated only when you change window width, and does not react to window height.
I believe 'vh' works internally through the same mechanisms as UiCanvasInformation does, so that's not a big surprise that they are both affected.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.