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

Snowflakes on 1/2 screen #8

Open
UweKretsen opened this issue Dec 13, 2020 · 1 comment
Open

Snowflakes on 1/2 screen #8

UweKretsen opened this issue Dec 13, 2020 · 1 comment

Comments

@UweKretsen
Copy link

Hi, can you advise where the problem is: snów flakes drop down only to 1/2 of screen.
System runs on PC win8.1 + LCD in vertical position.
26090930-745F-402B-B786-63CFC8EF5171
Thank you in advance for help.
BR

@Da3o55
Copy link

Da3o55 commented Dec 3, 2021

Hi @UweKretsen ,
Got the same problem !
As you, i use verticaly screen on my magicmirror2, it's on a raspberry pi but got the same effect.
From my side, i use a little peace of css code to rotate.
Programatically, the module still calculate the screen size as it was in landscape mode, result in snow flake falling only by screen vertical résolution. If your résolution is 1920x1080, snow flake fall only by 1080.
This fix works for me, it works un landscape or portrait.
I hope you will have lot's of snow this year on your magicmirror2 ;)

@media screen and (orientation:portrait) { @keyframes flake-downwards { from {transform: translateY(0vh)} to {transform: translateY(calc(100vh + 60px))} } } @media screen and (orientation:landscape) { @keyframes flake-downwards { from {transform: translateY(0vh)} to {transform: translateY(calc(100vw + 120px))} } }

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

2 participants