1
0
Fork 0
mirror of https://github.com/koalyptus/TableFilter.git synced 2026-03-17 16:10:04 +01:00

Set ezEditTable's scroll_into_view setting to true if grid-layout is on

This commit is contained in:
Max Guglielmi 2015-08-14 17:14:23 +10:00
commit 5b3fe38abe
9 changed files with 14 additions and 11 deletions

View file

@ -20,7 +20,10 @@ export default class AdapterEzEditTable {
this.stylesheetName = cfg.stylesheet_name || 'ezEditTableCss';
this.err = 'Failed to instantiate EditTable object.\n"ezEditTable" ' +
'dependency not found.';
// Turn on by default the scroll into view behaviour
cfg.scroll_into_view = cfg.scroll_into_view===false ?
false : tf.gridLayout;
console.log(cfg.scroll_into_view);
this._ezEditTable = null;
this.cfg = cfg;
this.tf = tf;