How to obtain the visible screen size of the client browser #3087
Unanswered
wasabismile
asked this question in
Q&A
Replies: 1 comment
-
Hi @wasabismile, Usually you would use the CSS unit "vh" to scale the height of an element relative to the viewport height: .style('height:100vh') Or you can use the corresponding Tailwind class: .classes('h-screen') Apart from that there are multiple reasons why your code won't work:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Question
I want to get the height of the client's screen and set the value as the height of element. But, It do not work.
Beta Was this translation helpful? Give feedback.
All reactions