angular2-grid icon indicating copy to clipboard operation
angular2-grid copied to clipboard

Resizing item goes out of parent grid boundaries

Open ShipraGrover opened this issue 9 years ago • 4 comments

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.

ShipraGrover avatar Aug 03 '16 00:08 ShipraGrover

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.

critchie avatar Aug 03 '16 13:08 critchie

no that didn't work .. it still goes out of parent grid when i resize and there is white space you can see

image

ShipraGrover avatar Aug 04 '16 18:08 ShipraGrover

Resizing grid item goes outside of grid. gridproblem1

Abdullah-Wahid avatar Aug 09 '16 07:08 Abdullah-Wahid

Any solution for this ?

smkart avatar Sep 27 '17 07:09 smkart