Fix the grid widget resize handler for grid_wrapper

This commit is contained in:
Hadi Nategh 2015-01-23 15:14:26 +00:00
parent 8e951c3346
commit 9c812c1799

View File

@ -990,7 +990,18 @@ var et2_grid = et2_DOMWidget.extend([et2_IDetachedDOM, et2_IAligned, et2_IResize
{ {
// apply the ratio // apply the ratio
_height = (this.options.resize_ratio != '')? _height * this.options.resize_ratio: _height; _height = (this.options.resize_ratio != '')? _height * this.options.resize_ratio: _height;
if (_height != 0) this.table.height(this.table.height() + _height ); if (_height != 0)
{
if (this.wrapper)
{
this.wrapper.height(this.wrapper.height() + _height);
}
else
{
this.table.height(this.table.height() + _height );
}
}
} }
} }
}); });