javascript - How to prevent resizing when mobile url hides -


i know has been discussed, , have tried implement suggested javascript fix problem, seems nothing resolves it. there definitive fix mobile dropdown urls resizing fixed background images? here js added try , fix problem:

$(function(){   var bg = $("#about-page-background-image, #blogs-page-background-image, #blogs-page-background-image-show, #faqs-page-background-image, #whats-included-page-background-image");   $(window).on('resize', resizebackground);   function resizebackground() {     var windowsize = $(window).height() + 60 + 'px';     bg.css('height', windowsize);   }   resizebackground(); }) 

this works, not until remove finger screen, doesn't help, there still 60px white space when scroll , url hides. in advance or suggestions, has been bugging me time.


Comments

Popular posts from this blog

Combining PHP Registration and Login into one class with multiple functions in one PHP file -

Android volley - avoid multiple requests of the same kind to the server? -

magento2 - Magento 2 admin grid add filter to collection -