angular-gridster2 icon indicating copy to clipboard operation
angular-gridster2 copied to clipboard

Calculating the width and height of the grid area that has blocks

Open shanti2530 opened this issue 2 years ago • 2 comments

Is there a simple way to get the width and height in pixels of the grid that has blocks in it?

shanti2530 avatar Apr 02 '22 15:04 shanti2530

What do you wanna achieve? @shanti2530

Vasanthvivi avatar Apr 04 '22 02:04 Vasanthvivi

If your element is inside the grid. then you can inject elementref on the and use this.elementref.nativeElement.parentElement.clientWidth and this.elementref.nativeElement.parentElement.clientHeight

AndeYashwanth avatar Dec 13 '22 15:12 AndeYashwanth