Fix the grid widget resize handler for grid_wrapper

This commit is contained in:
Hadi Nategh 2015-01-23 14:29:46 +00:00
parent 628b875bfb
commit d56b92af8b

View File

@ -990,7 +990,18 @@ var et2_grid = et2_DOMWidget.extend([et2_IDetachedDOM, et2_IAligned, et2_IResize
{
// apply the ratio
_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 );
}
}
}
}
});