Commit eb7eba0f authored by Ryan Herbert's avatar Ryan Herbert

builder.js fix left container toggle.

Using the jQuery method "toggle" will force a display block on a div, so
we need to do it this way to preserve flex.
I would have prefered to not have to explicitely name the flex
parameter, but it will be necessary when we introduce media queries.
parent 20471bb1
......@@ -406,7 +406,12 @@ Builder.prototype = {
},
toggle_left_container: function () {
$("#left-container").toggle()
var $left = $("#left-container")
var val = 'none';
if ($left.css('display') === "none") {
val = 'flex';
}
$left.css('display', val);
this.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