1

For example, in Chrome, on code blocks that are a single line, the scroll bar will not go away after it has appeared, and it looks like the following:

Enter image description here

And here's an actual example (bug reproduced in Chrome, haven't tried other browsers):

geometry.applyMatrix( new THREE.Matrix4().makeRotationFromEuler( new THREE.Vector3( Math.PI / 2, Math.PI, 0 ) ) );

(That example came from Three.js, the lookAt function issue.)

The scroll bar never goes away and makes it unreadable.

9
  • What OS are you experiencing this on?
    – Makoto
    Commented Jan 14, 2019 at 23:41
  • @Makoto edited, added a link
    – trusktr
    Commented Jan 14, 2019 at 23:42
  • @Xufox yeah, looks like the same issue
    – trusktr
    Commented Jan 14, 2019 at 23:44
  • @Xufox: That was years ago though. Question would be why it's manifest now.
    – Makoto
    Commented Jan 14, 2019 at 23:44
  • @Makoto I don’t know, but it doesn’t seem to be specific to Stack Overflow. The more recent The scroll bar on the code snippet makes the code unreadable has the same solution. Commented Jan 14, 2019 at 23:46
  • @Xufox I don't always want to show my scroll bar though. Maybe defensive padding can be added at bottom of code blocks?
    – trusktr
    Commented Jan 14, 2019 at 23:54
  • 1
    @Xufox Based on that question's answer, I tried it in Finder, and the scroll bar DOES go away after moving away. Just in Chrome is stays. Maybe it is a Chrome bug. In any case, it would be easy to add a small padding to code snippets, regardless of OS/browser issue.
    – trusktr
    Commented Jan 14, 2019 at 23:56
  • @Xufox I think this is a StackOverflow bug. I don't have this problem on other sites, only on StackOverflow
    – trusktr
    Commented Jan 17, 2019 at 4:02
  • @Makoto ^ For example, I can't reproduce the problem on this code snippet on GitHub: github.com/mui-org/material-ui/issues/14213 Try scrolling horizontally, hover on the scroll bar, then unhover, and it goes away just fine. I recall only ever having this problem on SO.
    – trusktr
    Commented Jan 17, 2019 at 4:03

0

Browse other questions tagged .