wittlock / ngx-image-zoom

Angular component for zoomable images
https://wittlock.github.io/ngx-image-zoom/
MIT License
134 stars 64 forks source link

Issue with server side Rendering #63

Open ElesGergo opened 4 years ago

ElesGergo commented 4 years ago

ERROR TypeError: this.imageThumbnail.nativeElement.getBoundingClientRect is not a function

wittlock commented 4 years ago

I haven't really looked into server side rendering at all. I'm not sure I'll get around to figuring that out and how to get this library to still work as intended anytime soon. I'd be happy to look over a pull request though.

ghost commented 11 months ago

According to the latest code in master this issue should not occur now as the calculation is done after the image load which will be triggered at browser side. I tested in ssr environment and verified it. This issue can be closed.