Commit d76261e2 authored by ThorbenQuast's avatar ThorbenQuast
Browse files

editor: enlarge dragbar width and save preferences after each resize

parent 9ee1cb75
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
} }
.codeeditor #execute { .codeeditor #execute {
min-width: 100px; min-width: 100px;
margin-left: 1px; margin-left: 3px;
} }
.codeeditor #abort { .codeeditor #abort {
margin-right: -1px; margin-right: -1px;
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
position: absolute; position: absolute;
top: 0px; top: 0px;
bottom: 0px; bottom: 0px;
width: 2px; width: 4px;
overflow: auto; overflow: auto;
z-index: 1; z-index: 1;
background-color: #E8E8E8; background-color: #E8E8E8;
...@@ -62,7 +62,7 @@ ...@@ -62,7 +62,7 @@
position: absolute; position: absolute;
left: 0px; left: 0px;
right: 0px; right: 0px;
height: 2px; height: 4px;
overflow: auto; overflow: auto;
z-index: 1; z-index: 1;
background-color: #E8E8E8; background-color: #E8E8E8;
......
...@@ -33,6 +33,7 @@ var CodeEditorUI = Emitter.extend({ ...@@ -33,6 +33,7 @@ var CodeEditorUI = Emitter.extend({
var width = $(self.view._nodes.content).width(); var width = $(self.view._nodes.content).width();
var r = 100.0 * (event.pageX) / width; var r = 100.0 * (event.pageX) / width;
self.setInputOutputRatio(r); self.setInputOutputRatio(r);
self.view.setPreference("inputOutputRatio", r);
} }
}); });
...@@ -62,6 +63,7 @@ var CodeEditorUI = Emitter.extend({ ...@@ -62,6 +63,7 @@ var CodeEditorUI = Emitter.extend({
return; return;
} }
self.setTextPictureRatio(r); self.setTextPictureRatio(r);
self.view.setPreference("outputPreviewRatio", r);
} }
}); });
}, },
...@@ -83,4 +85,4 @@ var CodeEditorUI = Emitter.extend({ ...@@ -83,4 +85,4 @@ var CodeEditorUI = Emitter.extend({
return this; return this;
}, },
}); });
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment