docsify icon indicating copy to clipboard operation
docsify copied to clipboard

cannot scroll down and up for the md content

Open jialihan opened this issue 4 years ago • 10 comments

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)

jialihan avatar May 19 '20 11:05 jialihan

please submit a reproducible sandbox

anikethsaha avatar May 19 '20 12:05 anikethsaha

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

jialihan avatar May 19 '20 19:05 jialihan

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

anikethsaha avatar May 20 '20 07:05 anikethsaha

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

good job, my problem had fix it.

wuqianrui avatar Jan 25 '21 10:01 wuqianrui

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.

Ayaan-A avatar Jan 15 '22 14:01 Ayaan-A

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

Ruppsn avatar Mar 10 '22 15:03 Ruppsn

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

trusktr avatar Aug 19 '22 01:08 trusktr

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 avatar Aug 19 '22 01:08 trusktr

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 avatar Aug 19 '22 01:08 trusktr

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

trusktr avatar Aug 19 '22 01:08 trusktr