Kartik的GridView中没有水平滚动条

时间:2018-10-08 14:34:23

标签: php yii2 kartik-v

正如标题所述,我无法向右移动或滚动表格,因为没有水平滚动条。 当我实际更改浏览器窗口的宽度时,滚动条会神奇地出现。但是,仅在加载页面后,它根本不可见-下面的屏幕截图(如您所见,操作列和部分字符串被切掉)。 enter image description here

这里是视图代码,但是没关系,没有任何选项的简单GridView的行为方式相同:

        <?= GridView::widget([
        'options'                 => ['id' => 'job-grid'],
        'dataProvider'            => $dataProvider,
        'filterModel'             => $searchModel,
        'pjax'                    => true,
        'perfectScrollbar'        => true,
        'pjaxSettings'            => [
            'options' => [
                'id'              => 'job_index_pjax',
                'enablePushState' => false,
            ],
        ],
        'resizableColumns'        => true,
        'resizableColumnsOptions' => ['resizeFromBody' => true],
        'persistResize'           => true,
        'responsiveWrap'          => false,
        'toolbar'                 => [
            ['content' =>
                 GridView::clearFiltersButton()
                 . '{toggleData}'
                 . $export
                 . ($createJobButton ?? '')
                 . ($deleteMultipleJobsButton ?? ''),
            ],
        ],
        'toggleDataOptions'       => GridView::getToggleDataOptions(),
        'panel'                   => [
            'type'  => GridView::TYPE_DEFAULT,
            'after' => Icon::i('info')
                . ' '
                . Yii::t('app', 'Use checkboxes to select items for export. If none selected, currently visible items will be exported. '),

        ],
        'columns'                 => [

0 个答案:

没有答案