Adjust content area to force scroll
list_ctx.on_add(function(hv){
var ___old_did_render = hv.did_render;
var last_bh = 0;
var adjust_height = function(count){
var bh = window.innerHeight;
if(last_bh !== bh){
//last_bh = bh;
var els = hv.el.querySelectorAll(".vs_content");
[].forEach.call(els, function(el){
var lh = bh-el.offsetTop;
el.style.height = lh+"px";
})
}
}
hv.did_render = function(count){
adjust_height();
___old_did_render(count);
}
app.on(app.evts.LAYOUT_EVT, function(e, d){
if(d.type === "RESIZE"){
adjust_height();
}
})
adjust_height();
})