Skip to content

Conversation

@samrith-s
Copy link
Contributor

@samrith-s samrith-s commented Apr 1, 2019

What kind of change does this PR introduce?
Fix issue #639 where the terminal's height going way above the editor's height, resulting in issues with dragging.

What is the current behavior?
#639

Checklist:

  • Documentation (NA)
  • Tests (NA)
  • Ready to be merged
  • Added myself to contributors table (NA)

Added flexShrink: 0 to the terminal. Necessary to ensure it drags naturally. Otherwise there's an issue where flex tries to allocate equal space to the preview and the terminal, resulting in a very jaggy experience

* Ensure terminal takes precedence over preview while dragging

* Flex does not try to shrink terminal anymore
@samrith-s samrith-s changed the title Fix issue #639 Set max size on drag resize handlers Apr 1, 2019
@CompuIves CompuIves closed this Apr 2, 2019
@CompuIves CompuIves reopened this Apr 2, 2019
@CompuIves
Copy link
Member

Whoops, pressed wrong button 😅.

This is reaaally great, thanks for the contribution!!

@CompuIves CompuIves merged commit 96818d8 into codesandbox:master Apr 2, 2019
@samrith-s
Copy link
Contributor Author

My pleasure, and thanks for the merge! 😁

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.

2 participants