A
A
Adoratus2016-03-08 04:14:46
css
Adoratus, 2016-03-08 04:14:46

When scrolling, the screen size changes how to fix it?

Good day!
There was such a problem. The background of the page is a picture on a fixed block, height 100%. On the phone, when scrolling up, the browser's auxiliary menu appears and the window size changes. When I scroll down, this browser menu disappears, and that place remains white until I stop scrolling and the block changes its hat to fill this white space. I tried to set a fixed hat, taking into account the white space. Does not help. I couldn't find a solution on google. Maybe someone has already encountered this?
Thank you!

Answer the question

In order to leave comments, you need to log in

2 answer(s)
P
Pavel, 2016-03-08
@Palych_tw

jquery $(window).resize() tried?
https://api.jquery.com/resize/

A
Alexander Alekseev, 2016-03-11
@shure348

make a fixed block not height 100% but
margin auto
top 0
right 0
left 0
bottom minus the height of the helper menu

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question