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

Hide/show bottom panel #374

Merged
merged 4 commits into from Apr 12, 2019
Merged

Hide/show bottom panel #374

merged 4 commits into from Apr 12, 2019

Conversation

vldmrkl
Copy link
Contributor

@vldmrkl vldmrkl commented Apr 11, 2019

I would like to share my progress on #356. I've tried to implement the suggested changes from the issue description. This is what I have so far:
If the bottom panel is in its initial state (the app has been just started, and the user selected component), the hide/show doesn't work:
hide-show-1

If the user resizes the bottom panel, the hide/show button works fine:
hide-show-fix

@dabbott
Copy link
Member

dabbott commented Apr 12, 2019

I think we want to increase the minimum thickness of the bottom pane so that it can't be in that weird state where it has 0 height but it's not "collapsed": https://github.com/airbnb/Lona/blob/31e6ffdc66703efd2198cd84688904cc02daa8ce/studio/LonaStudio/Workspace/ComponentEditorViewController.swift#L215 I'm not sure what the best value would be... maybe try 200? Or play around with it and see what seems like a good default

@vldmrkl
Copy link
Contributor Author

vldmrkl commented Apr 12, 2019

@dabbott 200 worked perfectly 👍

@vldmrkl
Copy link
Contributor Author

vldmrkl commented Apr 12, 2019

I've implemented your suggestions, and it seems to work fine now 🙌

Copy link
Member

@dabbott dabbott left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! Looks good to me 👌🏻. Is this ready to merge?

@vldmrkl
Copy link
Contributor Author

vldmrkl commented Apr 12, 2019

@dabbott I believe so.

@dabbott dabbott changed the title WIP: Hide/show bottom panel Hide/show bottom panel Apr 12, 2019
@dabbott dabbott merged commit f9a7716 into Lona:master Apr 12, 2019
@vldmrkl vldmrkl deleted the hide-btm-panel branch April 12, 2019 02:37
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