Commit 470dcb0f authored by Benjamin Fischer's avatar Benjamin Fischer
Browse files

UI: fixed resize event propagation during detach/collapse

parent 4d762e41
......@@ -210,6 +210,8 @@ define([
oldInstance.parent = undefined;
newInstance.master = this.master;
newInstance.parent = this;
newInstance.emit("resize");
},
/** indent: 1
......@@ -233,8 +235,6 @@ define([
wrapper.next().add(wrapper.prev()).eq(0).add(wrapper).remove();
this._instances.splice(index, 1);
this.emit("resize");
// proper resize
var n = siblings.length;
if (n === 0) {
......@@ -262,6 +262,8 @@ define([
siblings[i].style.flexBasis = String(v * scale)+"%";
siblings.eq(i).toggleClass("vispa-ui-resized", false);
}
this.emit("resize");
}
},
......
......@@ -317,6 +317,8 @@ define([
} else {
instance.hide();
}
this.emit("resize");
},
/** indent: 1
......
Markdown is supported
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