提交 89aed87a 编写于 作者: J Jason Park

fix #168

上级 83068054
...@@ -39,6 +39,7 @@ const addDividerToDom = (divider) => { ...@@ -39,6 +39,7 @@ const addDividerToDom = (divider) => {
$second.css('left', percent + '%'); $second.css('left', percent + '%');
x = pageX; x = pageX;
app.getTracerManager().resize(); app.getTracerManager().resize();
app.getEditor().resize();
$('.files_bar > .wrapper').scroll(); $('.files_bar > .wrapper').scroll();
} }
}); });
...@@ -76,6 +77,7 @@ const addDividerToDom = (divider) => { ...@@ -76,6 +77,7 @@ const addDividerToDom = (divider) => {
$second.css('top', percent + '%'); $second.css('top', percent + '%');
y = pageY; y = pageY;
app.getTracerManager().resize(); app.getTracerManager().resize();
app.getEditor().resize();
} }
}); });
......
...@@ -66,6 +66,11 @@ function Editor(tracerManager) { ...@@ -66,6 +66,11 @@ function Editor(tracerManager) {
if (this.marker) session.removeMarker(this.marker); if (this.marker) session.removeMarker(this.marker);
}; };
this.resize = () => {
this.dataEditor.resize();
this.codeEditor.resize();
};
// listeners // listeners
this.dataEditor.on('change', () => { this.dataEditor.on('change', () => {
......
此差异已折叠。
此差异已折叠。
此差异已折叠。
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册