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
2a84d147
Commit
2a84d147
authored
Aug 17, 2012
by
Bridger Maxwell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed a sizing bug in circuit editor.
parent
d3962ecd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletions
+3
-1
common/static/js/vendor/CodeMirror/mitx_markdown.js
+3
-1
No files found.
common/static/js/vendor/CodeMirror/mitx_markdown.js
View file @
2a84d147
var
schematic_height
=
220
;
var
schematic_width
=
400
;
var
styling_height_delta
=
2
;
//How many pixels are added to the height of the box because of styling (like a shadow)
var
styling_width_delta
=
2
;
var
schematic_editor_height
=
300
;
var
schematic_editor_width
=
500
;
...
...
@@ -121,7 +123,7 @@ CodeMirror.defineMode("mitx_markdown", function(cmCfg, modeCfg) {
return
html
;
},
size
:
function
(
text
)
{
return
{
width
:
schematic_width
,
height
:
schematic_height
};
return
{
width
:
schematic_width
+
styling_width_delta
,
height
:
schematic_height
+
styling_height_delta
};
},
callback
:
function
(
node
,
line
)
{
try
{
...
...
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