简体   繁体   English

Windows调整大小后,Iscroll进行引导模态工作

[英]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. 由于溢出:自动和溢出:滚动不适用于android 4和更旧的版本,我试图使用Iscroll.js。 I use it for 2 normal div and it works fine. 我将其用于2个普通div,它工作正常。 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. 将滚动条分配给模型中的其他div。
  • change positions: fixed to absolute and relative. 变更职位:固定为绝对和相对。
  • give modal divs height and max-height. 给出模态div的高度和最大高度。

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() { '$(“。product-it”)。click(function(){$(this).delay(500).queue(function(){

 myScroll.refresh();

 $(this).dequeue();

}); });

    });

'

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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