Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
f62a4396
Commit
f62a4396
authored
Mar 28, 2012
by
Bridger Maxwell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed bug for selecting lines with non-integer heights. It put up a fight...
parent
bb15d923
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
2 deletions
+1
-2
static/js/CodeMirror/codemirror.js
+1
-2
No files found.
static/js/CodeMirror/codemirror.js
View file @
f62a4396
...
...
@@ -1613,7 +1613,7 @@ var CodeMirror = (function() {
var
lineNo
=
lineAtHeight
(
doc
,
heightPos
);
if
(
lineNo
>=
doc
.
size
)
return
{
line
:
doc
.
size
-
1
,
ch
:
getLine
(
doc
.
size
-
1
).
text
.
length
};
var
lineObj
=
getLine
(
lineNo
),
text
=
lineObj
.
text
;
var
tw
=
options
.
lineWrapping
,
innerOff
=
tw
?
heightPos
-
heightAtLine
(
doc
,
lineNo
)
:
0
;
var
tw
=
options
.
lineWrapping
,
innerOff
=
tw
?
Math
.
floor
(
heightPos
-
heightAtLine
(
doc
,
lineNo
)
)
:
0
;
if
(
x
<=
0
&&
innerOff
==
0
)
return
{
line
:
lineNo
,
ch
:
0
};
function
getX
(
len
)
{
var
sp
=
measureLine
(
lineObj
,
len
);
...
...
@@ -2437,7 +2437,6 @@ var CodeMirror = (function() {
},
nodeAdded
:
function
(
node
)
{
if
(
this
.
widgetFunction
)
this
.
widgetFunction
.
callback
(
node
,
this
);
//this.setHeight(node.clientHeight);
},
// Fetch the parser token for a given character. Useful for hacks
// that want to inspect the mode state (say, for completion).
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment