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

cannot scroll down and up for the md content #1184

Open
jialihan opened this issue May 19, 2020 · 10 comments
Open

cannot scroll down and up for the md content #1184

jialihan opened this issue May 19, 2020 · 10 comments
Labels
wait for information something is not clear, waiting for the author of the issue/pr

Comments

@jialihan
Copy link

jialihan commented May 19, 2020

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

  • Docsify-cli version: 4.4.0
  • Docsify plugins: docsify-sidebar-collapse,docsify-scroll-to-top
  • Docsify config:
 window.$docsify = {
        name: "",
        repo: "",
        loadSidebar: true,
        search: "auto",
        auto2top: true
      };

Please create a reproducible sandbox

Edit 307qqv236

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

@anikethsaha
Copy link
Member

please submit a reproducible sandbox

@anikethsaha anikethsaha added the wait for information something is not clear, waiting for the author of the issue/pr label May 19, 2020
@jialihan
Copy link
Author

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

@anikethsaha
Copy link
Member

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

@wuqianrui
Copy link

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
Copy link

Ayaan-A commented Jan 15, 2022

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
Copy link

Ruppsn commented Mar 10, 2022

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

@trusktr trusktr reopened this Aug 19, 2022
@trusktr
Copy link
Member

trusktr commented Aug 19, 2022

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

@trusktr
Copy link
Member

trusktr commented Aug 19, 2022

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
Copy link
Member

trusktr commented Aug 19, 2022

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
Copy link
Member

trusktr commented Aug 19, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wait for information something is not clear, waiting for the author of the issue/pr
Projects
None yet
Development

No branches or pull requests

6 participants