Commit 9afd8993 authored by Marc Duez's avatar Marc Duez
Browse files

builder.js : debug vertical separator (animate doesn't work with display:table)

parent 38c3c801
......@@ -28,8 +28,8 @@ Builder.prototype = {
.on("mousemove", function () {
self.updateSeparator()
})
$("#vertical-separator")
.click(function () {
d3.select("#vertical-separator")
.on("click", function () {
self.toggle_left_container()
});
......@@ -506,23 +506,16 @@ Builder.prototype = {
},
toggle_left_container: function () {
console.log("plop")
var self = this
elem = $("#left-container")
var elem = $("#left-container")
if (elem.css("width") == "0px") {
if (elem.css("display") == "none") {
elem.css("display", "")
.animate({
width: self.width_left_container
}, 400, function () {
self.m.resize();
})
self.m.resize();
} else {
elem.animate({
width: "0px"
}, 400, function () {
$(this).css("display", "none")
self.m.resize();
})
elem.css("display", "none")
self.m.resize();
}
},
......
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