Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

react-grid-layout fixes #423

Merged
merged 2 commits into from
May 24, 2018
Merged

react-grid-layout fixes #423

merged 2 commits into from
May 24, 2018

Conversation

nikolas
Copy link
Member

@nikolas nikolas commented May 23, 2018

So, the react-grid-layout update actually did cause some bugs that I
didn't catch. I've fixed this up here.

The first problem was that moving the track items wasn't updating the state. That was a simple fix due to the rgl update.

The second problem: updating the state wasn't actually reflected in the layout of the track elements. Using the TimecodeEditor to update the start time, for example, wouldn't move the track element.

I had forgotten that I fixed this problem with a small change here: react-grid-layout/react-grid-layout#382 (comment)

I'd really like to get off of using our fork of this though - it causes problems. After reading the rest of the thread, it looked like I can fix this by specifying the layout to the surrounding ReactGridLayout element as well as on the individual items: react-grid-layout/react-grid-layout#382 (comment)

I've done this here, with the generateLayout method. I've duplicated some code here, but it's still an improvement since this allows us to use the standard version of react-grid-layout.

So, the react-grid-layout update actually did cause some bugs that I
didn't catch. Moving the track items wasn't updating the state. I've
fixed this up here.
@sdreher sdreher merged commit 2960a82 into master May 24, 2018
@sdreher sdreher deleted the rgl-fixes branch May 24, 2018 16:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants