SitePen / dgrid

A lightweight, mobile-ready, data-driven, modular grid widget designed for use with dstore
http://dgrid.io/
Other
628 stars 295 forks source link

Column hider button is not displayed on platforms with no scrollbar #1371

Closed edhager closed 7 years ago

edhager commented 7 years ago

The fix for #1293 is causing the column hider button to not be visible on platforms like iOS that do not display scrollbars.

eQuorumRayNewman commented 7 years ago

The problem that I'm having is when dgrid is constructed without a reference to a domNode and is appended to a node later. To duplicate the problem change the ColumnHider.html test case like this;

grid = window.grid = new (declare([Grid, Keyboard, Selection, ColumnHider]))({
    collection: testStore,
    columns: getColumns()
});
//}, "grid");
document.getElementById("grid").appendChild(grid.domNode);