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

Expand output cells to use available vertical space #639

Open
nlgranger opened this issue Apr 15, 2023 · 5 comments
Open

Expand output cells to use available vertical space #639

nlgranger opened this issue Apr 15, 2023 · 5 comments

Comments

@nlgranger
Copy link

nlgranger commented Apr 15, 2023

Slides are centered vertically based on the initial content height.
As output grows, the slide does not remain centered, instead the content just expands downward beyond the viewport.
The slide ends up with a weird blank space at the top, and more often than not the scroll bar gets confused.

image
image

I'd suggest the following behaviors instead:

  • Empty output cells use all available vertical space by default, and expand beyond if necessary causing a scrollbar to appear (on the slide or the output cell only?)
  • Provide a way to manually reserve height in cell metadata (but in which unit?)
  • Provide an option to align the slides to the top vertically, so there is no gap above the content to begin with.
@nlgranger
Copy link
Author

nlgranger commented Apr 15, 2023

Found a workaround.

@nlgranger
Copy link
Author

Rephrased the issue.

@nlgranger nlgranger reopened this Apr 15, 2023
@parmentelat
Copy link
Collaborator

have you tried to set center = false in your rise config ?
this is handed over to reveal.js, that should stop doing the vertical centering; which iiuc is the point of your last bullet

@nlgranger
Copy link
Author

Indeed, but the scrollbar doesn't show up when needed as output grows.

@parmentelat
Copy link
Collaborator

parmentelat commented Apr 19, 2023 via email

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

No branches or pull requests

2 participants