Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

it doesnt work after scroll in mobile chrome app #88

Open
bilginnet opened this issue Jan 9, 2018 · 0 comments
Open

it doesnt work after scroll in mobile chrome app #88

bilginnet opened this issue Jan 9, 2018 · 0 comments

Comments

@bilginnet
Copy link

bilginnet commented Jan 9, 2018

it works on samsung internet browser
but does not work on mobile chrome app

you can see this on my link: http://kararlikadinlar.com
just open the link on mobile chrome app

i tried this code, but same error

'eventOnRendered' => 'function() {
            window.setTimeout(function() {
                $(window).scroll();
            }, 500);
        }'

my code:

$pjax = \yii\widgets\Pjax::begin();
$pager = [
        'class' => \kop\y2sp\ScrollPager::className(),
        'triggerOffset' => 9999999,
        'triggerText' => 'Daha fazla göster..',
        'triggerTemplate' => '<div class="ias-trigger" style="text-align: center; cursor: pointer;"><a><h4>{text}</h4></a></div>',
        'spinnerSrc' => $assetUrl . '/images/gif/loading.gif',
        'spinnerTemplate' => '<div class="ias-spinner loading" style="text-align: center;"><img src="{src}" style="width: 75px!important; height: 75px!important; float: none!important;"/></div>',
        'noneLeftText' => 'En son habere ulaştınız',
        'noneLeftTemplate' => '<div class="ias-none-text clearfix"><h4>{text}</h4></div>',
        'container' => '#news-list',
        'item' => '.data-item',
        'paginationSelector' => '#news-list .pagination',
        'next' => '#news-list .pagination li.next a' ,
        'historyPrev' => '#news-list .pagination li.prev a',
    ];
echo \yii\widgets\ListView::widget([
        'id' => 'news-list',
        'options' => ['class' => 'clearfix'],
        'dataProvider' => $dataProvider,
        'itemView' => '//template/news/view-item',
        'viewParams' => ['assetUrl' => $assetUrl],
        'itemOptions' => ['class' => 'data-item'],
        'layout' => '{items} {pager}',
        'pager' => $pager
    ]);
\yii\widgets\Pjax::end();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant