You need to sign in to do that
Don't have an account?

LWC: issue on zoom or resize the window
Hello everybody !!
I'm working on a LWC and I'm using Leaflet and LeafletDraw js libraries.
It work's fine but when I resize or zoom the window, the component overtake its space in the container.
Someone know how to fix it?
Image 1: before resize the window

Image 2: after resize the window

I'm working on a LWC and I'm using Leaflet and LeafletDraw js libraries.
It work's fine but when I resize or zoom the window, the component overtake its space in the container.
Someone know how to fix it?
Image 1: before resize the window
Image 2: after resize the window
https://salesforce.stackexchange.com/questions/281764/add-event-listener-for-window-resize-in-lightning-web-component
For further reference check the below,
https://developer.salesforce.com/forums/?id=9062I000000IRXBQA4
Let me know if it helps you and close your query by marking it as solved so that it can help others in the future.
Thanks.