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

ReadTheOrg postamble hides the bottom TOC entries #89

Open
DarwinAwardWinner opened this issue Jul 9, 2019 · 5 comments
Open

ReadTheOrg postamble hides the bottom TOC entries #89

DarwinAwardWinner opened this issue Jul 9, 2019 · 5 comments

Comments

@DarwinAwardWinner
Copy link

In the ReadTheOrg theme, the postamble is placed at the bottom of the TOC column. However, it doesn't reduce the height of the TOC itself, which means that if the TOC extends to the bottom of the column, the last few entries are hidden under the postamble and are inaccessible. For example, with the org file below, the last TOC entry I can see is W, when it should be Z.

#+TITLE: Postamble hides bottom 3 TOC entries
#+AUTHOR: Ryan C. Thompson

# My Emacs doesn't like SETUPFILE so I manually pasted in the contents
#+HTML_HEAD: <link rel="stylesheet" type="text/css" href="https://fniessen.github.io/org-html-themes/styles/readtheorg/css/htmlize.css"/>
#+HTML_HEAD: <link rel="stylesheet" type="text/css" href="https://fniessen.github.io/org-html-themes/styles/readtheorg/css/readtheorg.css"/>
#+HTML_HEAD: <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
#+HTML_HEAD: <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js"></script>
#+HTML_HEAD: <script type="text/javascript" src="https://fniessen.github.io/org-html-themes/styles/lib/js/jquery.stickytableheaders.min.js"></script>
#+HTML_HEAD: <script type="text/javascript" src="https://fniessen.github.io/org-html-themes/styles/readtheorg/js/readtheorg.js"></script>

* A
* B
* C
* D
* E
* F
* G
* H
* I
* J
* K
* L
* M
* N
* O
* P
* Q
* R
* S
* T
* U
* V
* W
* X
* Y
* Z

Here is a screenshot of the lower left corner of the resulting html, after scrolling to the bottom of the TOC:

Screen Region 2019-07-08 at 19 54 52

@fniessen
Copy link
Owner

fniessen commented Jul 9, 2019

Dear @DarwinAwardWinner, I'm fully aware of this -- though, you should see a scrollbar… why don't you see it?

The real solution would be that the scrollbar comes automatically only when needed (when TOC is too large), and that it flows correctly when scrolling down in the document... But that's over my current CSS capabilities... Anyone?

@DarwinAwardWinner
Copy link
Author

There is a scrollbar, but it's invisible when not scrolling because I'm on MacOS with a touchpad only. If I plugged in a mouse, the scrollbar would appear statically.

@fniessen
Copy link
Owner

fniessen commented Jul 9, 2019

OK, so that's just a matter of display -- but it is there.

For the other issue, yes, any help for a CSS black belt would be welcome...

@DarwinAwardWinner
Copy link
Author

A less-than-ideal workaround is to hide the postamble entirely with: #+OPTIONS: html-postamble:nil

@hskalin
Copy link

hskalin commented Jun 20, 2020

I would like to add that in my case the scroll bar appears but it doesn't scroll all the way down.

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

3 participants