function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Iago SilvaIago Silva 

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
User-added image

Image 2: after resize the window

User-added image
AbhishekAbhishek (Salesforce Developers) 
The below blog might answer your query,

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.
Iago SilvaIago Silva
In these links they talk about event listener on resize action, how could this help me?