damianavila / RISE

RISE: "Live" Reveal.js Jupyter/IPython Slideshow Extension
Other
3.66k stars 414 forks source link

Expand output cells to use available vertical space #639

Open nlgranger opened 1 year ago

nlgranger commented 1 year ago

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:

nlgranger commented 1 year ago

Found a workaround.

nlgranger commented 1 year ago

Rephrased the issue.

parmentelat commented 1 year ago

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 commented 1 year ago

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

parmentelat commented 1 year ago

and have you also said scroll=true as per https://rise.readthedocs.io/en/stable/customize.html?highlight=scroll#enable-a-right-scroll-bar https://rise.readthedocs.io/en/stable/customize.html?highlight=scroll#enable-a-right-scroll-bar

if so, I’m afraid there is not much more I can think of.. primarily only a fraction of the settings that you give to rise are for rise itself, the rest - like, precisely, center and scroll, are passed along to reveal.js; maybe look in that documentation if you’re still stuck

On 19 Apr 2023, at 13:13, Nicolas Granger @.***> wrote:

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

— Reply to this email directly, view it on GitHub https://github.com/damianavila/RISE/issues/639#issuecomment-1514552578, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABCPKO5OHE6M42LIVSF5VA3XB7CE3ANCNFSM6AAAAAAW7H5GEY. You are receiving this because you commented.