Don't try to resize if the columns are not set yet - there's nothing to resize

This commit is contained in:
Nathan Gray 2013-10-09 14:05:05 +00:00
parent d22489e23b
commit daf55af475

View File

@ -156,6 +156,9 @@ var et2_dataview = Class.extend({
* Resizes the grid * Resizes the grid
*/ */
resize: function(_w, _h) { resize: function(_w, _h) {
// Not fully initialized yet...
if (!this.columnMgr) return;
if (this.width != _w) if (this.width != _w)
{ {
this.width = _w; this.width = _w;