Closed
Description
Contribution guidelines
- I've read the contribution guidelines and wholeheartedly agree
I've found a bug and checked that ...
- ... the problem doesn't occur with the
mkdocs
orreadthedocs
themes... the problem persists when all overrides are removed, i.e.custom_dir
,extra_javascript
andextra_css
... the documentation does not mention anything about my problem... there are no open or closed issues that are related to my problem
Description
The bug from Issure484 was reintroduced. As you can see here
Expected behaviour
There is a Vertical Scroll bar next to non inline latex.
Actual behaviour
There is not a Vertical Scroll bar next to non inline latex.
Steps to reproduce
- Write in markdown:
$$Per(n)=n!$$
- Deploy page
- Open page
Package versions
- Python:
3.x
- Material:
8.1.2
Configuration
site_name: George's Digital Garden
repo_name: LuciferUchiha/Digital-Garden
repo_url: https://github.com/LuciferUchiha/Digital-Garden
System information
- Operating system: Windows
- Browser: Brave
Metadata
Metadata
Assignees
Projects
Milestone
Relationships
Development
No branches or pull requests
Activity
squidfunk commentedon Dec 16, 2021
Thanks for reporting. Please provide a reproducible case.
[-]Latex Scroll bar back after 7.3.5[/-][+]Latex vertical Scroll bar bug is back[/+]LuciferUchiha commentedon Dec 17, 2021
I have added a bit more Detail with a Link to some evidence
squidfunk commentedon Dec 17, 2021
I can see the issue on your page but I'm still not able to reproduce it. Using the formula you posted, no scrollbar appears:
I'm closing this as non-reproducible as it's unclear to me whether you are using customizations that might cause the error, because you supplied incomplete information in the
mkdocs.yml
section. If you manage to craft a minimal reproducible example with a clean installation, I'm happy to look into it and fix it.slutske22 commentedon Dec 29, 2021
I am having the same issue. You can see the scrollbars on my documentation's site here: https://firestarter-io.github.io/node-algorithm/algorithm/firespread/slope/
The code for this particular page can be found here: https://github.com/firestarter-io/node-algorithm/blob/rothermel-slope-aspect-ros/docs/algorithm/firespread/slope.md
If it helps, my mkdocs.yml looks like this:
I'm not sure if this is the same as @LuciferUchiha 's issue, or if some external plugins / js / css may be causing the issue.
I came up with a CSS hack. In the project's extra_css, add this:
That seemed to fix it for me. I'll leave the offending docs published for a little while so @squidfunk can take a look.
Short of a hacky CSS hack to stop this, I'm not sure what I might do to fix it.
LuciferUchiha commentedon Dec 29, 2021
@slutske22 I was able to fix it by adding
facelessuser commentedon Dec 29, 2021
Particularly
overflow-y
should be hidden. That's what I usually do. I don't usually hide the X direction. I don't often overflow in that direction, but I've never seen scroll issues related to the X direction.LuciferUchiha commentedon Dec 29, 2021
Correct could be slightly preciser however I haven't run into any problems yet with this solution
akhmerov commentedon Jan 3, 2022
Adding an example that seems to reproduce the issue for me:
I have confirmed that the scrollbar isn't gone upon replacing the html content with the one that is known to work, nor upon replacing the stylesheet (both using browser dev tools). All the dom elements seem to have identical sizes with and without the problem.
squidfunk commentedon Jan 3, 2022
A PR is appreciated. Note that
overflow: hidden
as suggested in #3354 (comment) is likely not the solution, as this will break scrolling on narrow screens when the formula exceeds the width of the viewport.14 remaining items