ng-matero / extensions

Angular Material Extensions Library.
https://ng-matero.github.io/extensions/
MIT License
445 stars 60 forks source link

Change Width of Image ToolTip #317

Closed btitular2 closed 4 months ago

btitular2 commented 5 months ago

Discussed in https://github.com/ng-matero/extensions/discussions/217

Originally posted by **nbeligh** May 17, 2023 Hello, hope you are fine, currently i'm trying to change the width of image diplayed but it does not work. Am I missign something ? in the exemple i juste changed another image from internent larger than Angular logo, but it shows only the first 200px of it, yet the height can be changed. Thank you in advance for you reply :)

My angular app is using css - and I can't get the tooltip to render a ng-template > 200px wide mtx-tooltip1 . I was able to set the mtxTooltipClass to set the desired width, but the rendered ng-template doesn't fill the requested width. I've set the template's div width:100%, but it won't fill the width.

mtx-tooltip2 mtx-tooltip1

nzbin commented 5 months ago

Can you provide an online example?