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

[Bug] When scrolling up, the remaining lines appear at the top #4689

Open
1 of 2 tasks
dw130 opened this issue Sep 19, 2024 · 0 comments
Open
1 of 2 tasks

[Bug] When scrolling up, the remaining lines appear at the top #4689

dw130 opened this issue Sep 19, 2024 · 0 comments

Comments

@dw130
Copy link

dw130 commented Sep 19, 2024

Reproducible in vscode.dev or in VS Code Desktop?

  • Not reproducible in vscode.dev or VS Code Desktop

Reproducible in the monaco editor playground?

Monaco Editor Playground Link

No response

Monaco Editor Playground Code

"monaco-editor": "^0.49.0",


monaco.editor.defineTheme('myTheme', {
  base: 'vs-dark',
  inherit: true,
  rules: [
    { token: 'comment.css', foreground: 'ff4949' },
    { token: 'highLightClass', background: 'eb8282' },
  ],
  colors: {
    "editor.lineHighlightBackground": "#3e3d32",
    "editorLineNumber.foreground": "#90908a",
    "editor.selectionBackground": "#878b9180",
    'editor.inactiveSelectionBackground': '#414339',
    // 'editor.background': "#252526",
    "editor.background": "#272822",
    "editor.foreground": "#f8f8f2",
    "selection.background": "#ccccc7",
  },
})
monaco.editor.setTheme('myTheme')


monaco.editor.create(this.$refs[name][0], {
          language: "json",
          editorOptions: {
            theme: "myTheme",
            selectOnLineNumbers: true,
            roundedSelection: false,
            quickSuggestions: false,
          },
          readOnly: true,
          wordWrap: 'on', 
          scrollbar: {
            horizontal: 'hidden' 
          },
          //wordWrapColumn: 80, 
          wordWrapMinified: true, 
          //wrappingIndent: 'indent' 
        });

Reproduction Steps

No response

Actual (Problematic) Behavior

When keep scrolling up, the remaining lines appear at the top
A dividing line appears
line 1902, next line is 1927

once click line 1902,the abnormal line 1902 disppear and 1926 appear

image

Expected Behavior

No response

Additional Context

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant