简体   繁体   中英

Iscroll for bootstrap modal works just after a windows resize

since overflow: auto and overflow: scroll don't work for android 4 and older versions I tried to use Iscroll.js. I use it for 2 normal div and it works fine. but bootstrap modal has a problem with it. it only gets scrolled after a window resize.


I tried many things to solve it:

  • give the scroll to different div inside model.
  • change positions: fixed to absolute and relative.
  • give modal divs height and max-height.

none of the them solve this problem. so please help.

I solved it. the code can explain the problem.

' $(".product-it").click(function(){ $(this).delay(500).queue(function() {

 myScroll.refresh();

 $(this).dequeue();

});

    });

'

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM