angular2-grid
angular2-grid copied to clipboard
Resizing item goes out of parent grid boundaries
Hi,
When i resize the item it overflows/goes out of grid , can i restrain it to be within the grid like in case of drag.
I think is caused by this line in NgGrid.ts:
this._renderer.setElementStyle(this._ngEl.nativeElement, 'width', '100%');//(maxCol * (this.colWidth + this.marginLeft + this.marginRight))+'px');
That 100% is causing the problem. If you put all that commented column math back it it seems to work fine.
no that didn't work .. it still goes out of parent grid when i resize and there is white space you can see

Resizing grid item goes outside of grid.

Any solution for this ?