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

Text blur issue by using translate3D repeat issue

Open oliveshell opened this issue 4 years ago • 3 comments

#412

As the pr has resolved the issue before, I found the new code in the gridsterRender.service.ts has involved the translate3d. Can you resolve the issue? Thank You. setCellPosition(renderer: Renderer2, el: any, x: number, y: number): void { const xPosition = this.gridster.$options.dirType === DirTypes.RTL ? -x : x; if (this.gridster.$options.useTransformPositioning) { const transform = 'translate3d(' + xPosition + 'px, ' + y + 'px, 0)'; renderer.setStyle(el, 'transform', transform); } else { renderer.setStyle(el, 'left', this.getLeftMargin() + xPosition + 'px'); renderer.setStyle(el, 'top', this.getTopMargin() + y + 'px'); } }

oliveshell avatar May 19 '20 12:05 oliveshell