title: Yii2 Scroll Pager with overflow scroll
body: <p>i am using Yii2 with a scroll pager extension: <a href="http://kop.github.io/yii2-scroll-pager/" rel="nofollow">http://kop.github.io/yii2-scroll-pager/</a></p>
  
  <p>However, when you set the scroll for a div, instead of the whole screen, ajax is not loading any additional items when you scroll down.</p>
  
  <p>Here's my code:</p>
  
  <pre><code>echo ListView::widget([
    'dataProvider' =&gt; $newsDataProvider,
    'itemOptions' =&gt; ['class' =&gt; 'item'],
    'itemView' =&gt; '_news_item_view',
    'pager' =&gt; [
      'class' =&gt; \kop\y2sp\ScrollPager::className(),
      'negativeMargin' =&gt; '200',
      'triggerText' =&gt; 'Load More news',
      'triggerOffset' =&gt; 3,
      'noneLeftText' =&gt; '',
      ],
      'summary' =&gt; '',
  ]);
  </code></pre>
  
  <p>But this is not working. You can see it live mode here: <code>http://188.226.170.133/</code> on the div with id = w0</p>
  
  <p>here's css i've added to make the scroll happen only on this div:</p>
  
  <pre><code>#w0 {
      height: 600px;
      overflow-y: scroll;
  }
  </code></pre>
  
  <p>Any suggestions?</p>