Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

Position fixed element hides behind virtual buttons on Android

I am working on some project, and after testing I have noticed that if the device has virtual buttons(on-screen), then div element that is supposed to be always fixed at the bottom, is behind those buttons. Basically I have lets say 2 divs, one is 100vw 100vh, the other one is 100vw wide and has height of 60px, instead of going above(stacked) the buttons, it goes beneath those buttons and is invisible unless the user hides his virtual buttons.
Is there a way to detect if the user has virtual buttons, and then just use some JS magic, or can it be fixed with a simple CSS solution?

Here is my JS Fiddle.
https://jsfiddle.net/hc9fvdgc/
I'm not sure that you can detect a device with "virual buttons" (whatever that may be) but you can detect a mobile device - https://stackoverflow.com/questions/6666...javascript

If it's a mobile device, why not just use an expandable sidebar instead of the toolbar? It's not going to work as well on mobile.

Je t'aime
[Image: fpZ5a5g.png]

(Apr 22, 2022 04:39 PM)-Scrub Wrote:  Jokes on you, I'm not smart enough to know what he's talking about.
(Nov 26, 2017 06:45 AM)Nachfolger Wrote:  I'm not sure that you can detect a device with "virual buttons" (whatever that may be) but you can detect a mobile device - https://stackoverflow.com/questions/6666...javascript

If it's a mobile device, why not just use an expandable sidebar instead of the toolbar? It's not going to work as well on mobile.

I meant virtual buttons, on-screen buttons or whatever they are called.
(Nov 26, 2017 06:51 AM)DaemonSic Wrote:  I meant virtual buttons, on-screen buttons or whatever they are called.

A Keyboard?

Je t'aime
[Image: fpZ5a5g.png]

(Apr 22, 2022 04:39 PM)-Scrub Wrote:  Jokes on you, I'm not smart enough to know what he's talking about.
(Nov 26, 2017 07:04 AM)Nachfolger Wrote:  A Keyboard?

This.
[Image: OwnCv.png]


Possibly Related Threads...
Thread / Author Replies Views Last Post
by btcguriJan 13, 2021 07:21 AM 3 155 Jan 13, 2021 07:21 AM
Last Post: Nachfolger
by bevcMay 14, 2020 12:26 PM 3 128 May 14, 2020 12:26 PM
Last Post: I337
by randomFunPartyNov 19, 2019 04:22 AM 5 155 Nov 19, 2019 04:22 AM
Last Post: Nachfolger