Skip to content
Snippets Groups Projects
Commit fd052625 authored by Marijn Haverbeke's avatar Marijn Haverbeke
Browse files

[panel addon] Fix changed method of panels

Closes #4683
parent 78b97710
No related branches found
No related tags found
No related merge requests found
......@@ -66,7 +66,7 @@
Panel.prototype.changed = function(height) {
var newHeight = height == null ? this.node.offsetHeight : height;
var info = this.cm.state.panels;
this.cm._setSize(null, info.height += (newHeight - this.height));
this.cm._setSize(null, info.heightLeft -= (newHeight - this.height));
this.height = newHeight;
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment