-
Notifications
You must be signed in to change notification settings - Fork 50
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
Small clean up and solves #150 #151
Conversation
binder/environment.yml
Outdated
@@ -10,5 +10,5 @@ dependencies: | |||
- pandas | |||
- scipy | |||
- voila | |||
- voila-gridstack=0.2.0 | |||
- jupyterlab=3 | |||
- voila-gridstack |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we could remove voila-gridstack
from the environment.yml
? And add pip install .
in a postBuild
file.
That way we could more easily test PRs on Binder.
This can be tested on Binder: https://mybinder.org/v2/gh/hbcarlos/voila-gridstack/vg-scroll?urlpath=lab/tree/examples |
Thanks, Jeremy! |
Just checking: it sounded like the issue mentioned in #122 (comment) is not related to this PR? Then we can track it separately to not block the merge. |
No, is not related to this PR. Also is not critical, and I don't think users will see this issue since it happens when stopping and running JupyterLab several times. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!!
I'll resume #148 so we can release this change and the other ones that were merged recently. |
This PR solves multiple issues.
Commits:
1: Removes versions from the binder env file to install latest.
2: Solve #143
* Remaining comments from #142.
3: Solves #150:
* Adds the scrolled distance to the y offset.
4 and 6: Improves the size of a new cell
* When adding a new cell to the grid, the size is too small.
* Gets the size from the original cell and adds 40px to the height (the size of the toolbar).
5 and 8: Makes the grid fit the size of the panel
* Once the grid is rendered, gets the size of the panel and modifies the
min-height
of the grid to fit the panel.* I think this improves the UX by having always the grid visible, and removing the resize behavior when adding the first cell to the grid.
* This doesn't affect the final look of the layout when rendering with voila.
* Problem: we don't have the helper anymore (Maybe I can add it on top).
9: Improves the scroll behavior
* Remove the horizontal scroll since is not necessary.
* Allows scrolling when adding a new cell.
Screencast:
Peek.2021-11-01.10-20.mp4