Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
3pia
VISPA
VISPA web
Commits
d76261e2
Commit
d76261e2
authored
Nov 11, 2014
by
ThorbenQuast
Browse files
editor: enlarge dragbar width and save preferences after each resize
parent
9ee1cb75
Changes
2
Hide whitespace changes
Inline
Side-by-side
vispa/extensions/codeeditor/static/css/styles.css
View file @
d76261e2
...
...
@@ -9,7 +9,7 @@
}
.codeeditor
#execute
{
min-width
:
100px
;
margin-left
:
1
px
;
margin-left
:
3
px
;
}
.codeeditor
#abort
{
margin-right
:
-1px
;
...
...
@@ -33,7 +33,7 @@
position
:
absolute
;
top
:
0px
;
bottom
:
0px
;
width
:
2
px
;
width
:
4
px
;
overflow
:
auto
;
z-index
:
1
;
background-color
:
#E8E8E8
;
...
...
@@ -62,7 +62,7 @@
position
:
absolute
;
left
:
0px
;
right
:
0px
;
height
:
2
px
;
height
:
4
px
;
overflow
:
auto
;
z-index
:
1
;
background-color
:
#E8E8E8
;
...
...
vispa/extensions/codeeditor/static/js/ui.js
View file @
d76261e2
...
...
@@ -33,6 +33,7 @@ var CodeEditorUI = Emitter.extend({
var
width
=
$
(
self
.
view
.
_nodes
.
content
).
width
();
var
r
=
100.0
*
(
event
.
pageX
)
/
width
;
self
.
setInputOutputRatio
(
r
);
self
.
view
.
setPreference
(
"
inputOutputRatio
"
,
r
);
}
});
...
...
@@ -62,6 +63,7 @@ var CodeEditorUI = Emitter.extend({
return
;
}
self
.
setTextPictureRatio
(
r
);
self
.
view
.
setPreference
(
"
outputPreviewRatio
"
,
r
);
}
});
},
...
...
@@ -83,4 +85,4 @@ var CodeEditorUI = Emitter.extend({
return
this
;
},
});
});
\ No newline at end of file
Write
Preview
Supports
Markdown
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