docsifyjs / docsify

🃏 A magical documentation site generator.
https://docsify.js.org
MIT License
27.78k stars 5.68k forks source link

cannot scroll down and up for the md content #1184

Open jialihan opened 4 years ago

jialihan commented 4 years ago

Bug Report

load the _sidebar with md files, when click to show the .md file on the right content, there is no scroll bar on the right, the page is static and even cannot scroll down.

Steps to reproduce

1) run docsify serve docs 2) open: localhost 3) click a sidebar item, it loads the .md file content on the right side 4) page is static, and window cannot scroll down, only show part of the file. no scrollbar on the right shows up.

What is current behaviour

page is static and cannot scroll down, so i cannot see the whole content in the .md file

What is the expected behaviour

loads the scroll bar on the window on the right side

Other relevant information

Please create a reproducible sandbox

Edit 307qqv236

Mention the docsify version in which this bug was not present (if any)

anikethsaha commented 4 years ago

please submit a reproducible sandbox

jialihan commented 4 years ago

@anikethsaha I have already updated the sandbox index.html page.

anikethsaha commented 4 years ago

you have linked the docsify script twice. remove the other one and it will work fine.

wuqianrui commented 3 years ago

you have linked the docsify script twice. remove the other one and it will work fine.

good job, my problem had fix it.

Ayaan-A commented 2 years ago

you have linked the docsify script twice. remove the other one and it will work fine.

I don't know what you mean by this, I have the same problem.

Ruppsn commented 2 years ago

Same Problem. Standard config. no edit in index.html

trusktr commented 2 years ago

@wuqianrui @Ayaan-A @Ruppsn can you post links to reproductions?

trusktr commented 2 years ago

Nvm, there's definitely something wrong with that reproduction above, even without the duplicate script, and without plugins. But still it will help if you can provide a reproduction too, maybe there will be clues.

trusktr commented 2 years ago

Nvm again, there is something weird with Codesandbox. After doing the following,

  1. removing the <style> and the duplicate <script>,
  2. then refreshing the whole Codesandbox every time

the example works. New example:

https://codesandbox.io/s/quirky-pine-psuh0u?file=/index.html

This means Codesandbox is doing something to the viewport, making it seem something is wrong, giving us false expectations. A full refresh works every time.

trusktr commented 2 years ago

@wuqianrui @Ayaan-A @Ruppsn Are you all using Codesandbox too?