kartik-v / yii2-grid

Enhanced GridView with various utilities for Yii Framework 2.0
http://demos.krajee.com/grid
Other
558 stars 302 forks source link

resizableColumns not working with non-visible table #1066

Closed spo0okie closed 1 year ago

spo0okie commented 1 year ago

Prerequisites

Steps to reproduce the issue

  1. Create page with gridview with resizableColumns on inactive tab of tabControl
  2. switch to tab with gridview
  3. columns not resizable

Expected behavior and actual behavior

columns must resize as it always do but they stay still

Environment

Browsers

Operating System

Libraries

Isolating the problem

Additional

Problem is in resizable plugin itself. It needs table to be visible to calculate columns widths and init correctly. Need to defer initialization until table become visible