bjgrosse / react-resize-panel

Simple React resize panel component
MIT License
139 stars 55 forks source link

Hello, is there a way we can manipulate the width of the resizable panel? #5

Open deepseafishing opened 4 years ago

deepseafishing commented 4 years ago

When I give the width to the style of the resizable panel, it has that fixed with at the first render. I want to manipulate that width with a variable and changed the number but after the first render, it doesn't seem to change the width dynamically. Is there a way I can do this? Thanks!

willydavid1 commented 4 years ago

I actually changed the color to blue and increased the width of the draggable with :hover is this what you mean?

dennisfoster commented 3 years ago

You can use vanilla JS to modify class width: document.getElementsByClassName("ResizePanel-module_ResizeContentHorizontal__1gGbA")[0].style.width = width;