Skip to content

Commit

Permalink
Revert "Add support for basic scaling of horizontal gaps"
Browse files Browse the repository at this point in the history
This reverts commit 0943911.

This was an accidental commit.
  • Loading branch information
marijnh committed Sep 27, 2024
1 parent 0943911 commit 814b062
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions demo/demo.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
import {EditorView, basicSetup} from "codemirror"
import {javascript} from "@codemirror/lang-javascript"

let doc = ""
for (let i = 0; i <= 1245526; i++) doc += String.fromCharCode("a".charCodeAt(0) + Math.floor(Math.random() * 26))

let view = (window as any).view = new EditorView({
doc,
extensions: basicSetup,
;(window as any).view = new EditorView({
doc: 'console.log("Hello world")',
extensions: [
basicSetup,
javascript(),
],
parent: document.body
})

console.log("---")
view.dispatch({selection: {anchor: view.state.doc.length}, scrollIntoView: true})

0 comments on commit 814b062

Please sign in to comment.