-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Section Height "Fit to screen" does not work on mobile #630
Comments
You are right. fit to screen is not currently supported on mobile due to some technical problems. To achieve the fit-to-screen look we use the css value Although we could use This is why we currently do not have a solution for fit to screen in mobile. |
Thanks @joshmarom . I just added a custom class to that section and gave it If I come up with a solution at any point or find something that works better I'll let you kno. |
In the next version (1.5) we have added a responsive control of the Min-height by device. I think it will solve your problem. Thanks for your feedback. |
@arielk On the recent iterations of Elementor, I do not see min-height by device on my sections. Is this something that is now NOT available? I am encountering these same hurdles, but other than setting some margin in Mobile (at the top of the section) to move things down a bit - I don't seem to have any way to adjust this in mobile VS desktop! |
Hi, I found the answer by carasmo on a separate thread: |
Still no solution for this issue?! OMG |
The 'fit to height' CSS is simply not obeyed by mobile browsers. In my opinion - this makes it useless - and Elementor should change how it does height. When I do height: 100vh; it seems to obey things. However - the correct solution for most applications that I can find is to just set Minimum Height (instead of 'Fit to screen') and then set it to 100 vh. This makes it full screen on ANY device. It's probably what should be done when you actually want full screen! |
We are working on the fullscreen solution. for more: https://data-deveb.github.io/1.0/en/ |
Fit screen problem still exists on the mobile device. Please fix this issue asap. |
Why not use this as the css with the full screen selector: .full-height { |
My website is https://www.flexistamps.com |
Hey there, I hope it will help for everyone who almost lost ones mind... just as I almost did :-) |
What if I want to divide the screen in two with hero image at 75vh and the next section to take up the rest at 25vh? I can’t get this to work and It’s driving me nuts. |
Hey Lee-Anne,
I think it is because your image is probably higher than the 25% allow it to be. So one solution would be to insert your image as the background oft he section instead of pulling it in as an image. The other option would be to set the size oft the image manually to a value where the hight is lower than 25% oft he full screen size of your device.
Let me know if that helped!
Greetings from Berlin, Germany.
Robin
Von: Lee-Anne Ekland <notifications@github.com>
Gesendet: Sonntag, 17. Februar 2019 17:55
An: elementor/elementor <elementor@noreply.github.com>
Cc: your-spark <robin.schaarschmidt@your-spark.com>; Comment <comment@noreply.github.com>
Betreff: Re: [elementor/elementor] Section Height "Fit to screen" does not work on mobile (#630)
What if I want to divide the screen in two with hero image at 75vh and the next section to take up the rest at 25vh? I can’t get this to work and It’s driving me nuts.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub <#630 (comment)> , or mute the thread <https://github.com/notifications/unsubscribe-auth/AtG2ivpzTpq3N6fT9SKLNJKK65-ZpoTvks5vOYl7gaJpZM4KFih0> . <https://github.com/notifications/beacon/AtG2ivLdQgiYbudNiQmskxFPzkDV1mXmks5vOYl7gaJpZM4KFih0.gif>
|
Thank you so much for your reply!
I had the image set as the section background at 75vh and the second
section doesn’t have an image.
I thought if they both added up to 100vh it would work but it doesn’t. I
keep having to readjust. Landscape view is even worse.
On Sun, Feb 17, 2019 at 10:24 PM your-spark ***@***.***> wrote:
Hey Lee-Anne,
I think it is because your image is probably higher than the 25% allow it
to be. So one solution would be to insert your image as the background oft
he section instead of pulling it in as an image. The other option would be
to set the size oft the image manually to a value where the hight is lower
than 25% oft he full screen size of your device.
Let me know if that helped!
Greetings from Berlin, Germany.
Robin
Von: Lee-Anne Ekland ***@***.***>
Gesendet: Sonntag, 17. Februar 2019 17:55
An: elementor/elementor ***@***.***>
Cc: your-spark ***@***.***>; Comment <
***@***.***>
Betreff: Re: [elementor/elementor] Section Height "Fit to screen" does not
work on mobile (#630)
What if I want to divide the screen in two with hero image at 75vh and the
next section to take up the rest at 25vh? I can’t get this to work and It’s
driving me nuts.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub <
#630 (comment)>
, or mute the thread <
https://github.com/notifications/unsubscribe-auth/AtG2ivpzTpq3N6fT9SKLNJKK65-ZpoTvks5vOYl7gaJpZM4KFih0>
. <
https://github.com/notifications/beacon/AtG2ivLdQgiYbudNiQmskxFPzkDV1mXmks5vOYl7gaJpZM4KFih0.gif>
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#630 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AQSIifpMPvYELl3pTFPcHsEBsA2Utperks5vOkb9gaJpZM4KFih0>
.
--
Have a gorgeous day!
Lee-Anne Ekland, founder, proupdpupmedia.com <https://proudpupmedia.com/>
*web development & design | content management | web services*
phone or text to: 778.839.0696
|
Here's my solution
|
This bug seems to have gotten back with the new flexbox introduction? |
This bug seems to have reappeared with the latest update |
I have bought theme using elementor. But this problem has not fixed. :( |
Bough Elementor Pro you mean? Well that wouldn't change this exact problem. In the mean time I would suggest rather than using the option fit to screen, to use the min-height and set it to 100VH instead so then you know it's full width on all breakpoints! @joshmarom & @arielk any updates on this? |
It's been there for various version already that this bug is present. I suggest you to just use thee 100VH property instead. |
using 100vh is not working good with video background |
Wow... new user, just ran into this problem. This: @media (max-width: 768px) { seems to work at first, but if a phone is flipped from vertical to horizontal, the sections overlap. |
You might want to make a separate media query for landscape viewport and adjust accordingly. Though I barely see people use websites in landscape mode to be honest. |
the year is almost 2020 and still no solution for this.. |
i got the solutions guys. |
so what's the solution? This is a problem even in the pro version as far as I'm aware? Solutions suggesting min-height 100vh dont take into account of the header height and usually result in the section overshooting... |
Usually the 100vh height will account for the adjusted height, with is why you'll sometimes see mobile pages go funky when the browser's address bar slides down. For browsers that don't account for the sliding bar within the vh unit: The height for the address bars will not be constant across the browsers. So I'd advise against 100vh only or 100vh with a predefined px number subtract appended. My advice is setting the height of the section/column (using javascript) with the window.innerheight property. FIRST: SECOND:
How can I add the JS code? Well, I use a plugin called Scripts and Styles. Hey @joshmarom , I bought your PRO version and I asked for a solution but I could not find so I got this solution. |
I don't see this issue as closed. Because even though min height for responsive modes was added it does not work. Steps to reproduce
View in browser and either the section height on desktop is just broken or an arbitrary height and mobile is also broken |
This issue should be reopend... Although there are workarounds the feature obviously does not work on mobile devices. Great product otherwise! ^^ |
Hello Peeps I'm new to Elementor, and have no code experience but after some research I found this solution that worked for me. Not sure if it will work for the rest of you, but I say give it a try Set 100vh Height AND add CSS (advanced tab->Custom CSS) CSS: body { |
I agree this should be reopened. How this is still a problem in 2020 with Elementor when practically every site should be responsive, is beyond me. Considering exploring other page builders now... |
This problem still persists as of 16/07/2020. It would be useful if this was fixed ASAP! |
This issue should be reopened. |
problem still persists 04/09/2020 |
We can dream. We've gone up to a new major version with only two minor improvements, yet the good and well wanted suggestions here on github just slip under the radar including many that have been going on for years 👀 |
@groovybluedog Have you tried this solution? #630 (comment) |
I've been going crazy because of this, and it was because it's not fixed yet (17/12/2020). |
Why is that closed? The error is still available? With this code it works
Is it not possible to integrate this? |
Looks like 100VH is working if you set padding and margin of the section to zero. |
Not Working! |
Did you try this? |
Hey, 22 april 2021, still issue not resolved? Please! |
Same problem here. Please resolve! |
Result is here. Look last codes. |
omg, that worked, thank you! |
That's it ! |
Hi,
I'm not sure if this is an issue already reported but after searching Google for a while I figured I would just comment here. I made a full page header section very easily by making the section height "fit to screen" and adding a fixed background image. The problem is when the screen size is reduced to tablet/mobile sizes the section shrinks to only the size of the content within it. Is this a bug? Or am I doing something wrong? I can't find any other settings built in so I'll probably have to write some custom CSS to override it.
The text was updated successfully, but these errors were encountered: