negomi / react-burger-menu

:hamburger: An off-canvas sidebar component with a collection of effects and styles using CSS transitions and SVG path animations
http://negomi.github.io/react-burger-menu/
MIT License
5.04k stars 582 forks source link

Width prop broken on elastic menu #362

Closed fredriknorlin closed 4 years ago

fredriknorlin commented 4 years ago

Changing the prop width on the elastic menu from the default of 300 creates a gap in the menu background:

The code:

<Menu 
    right 
    width={ 500 }
    ...
/>

Creates the following result:

I guess at least part of the problem is the hardcoded width on row 57 in elastic.js.

negomi commented 4 years ago

Thanks for reporting this @fredriknorlin, it's fixed in 2.6.14 🎉

fredriknorlin commented 4 years ago

Perfect! Thank you! 🎉 @negomi