Commit 2a7de3f0 authored by Ryan Herbert's avatar Ryan Herbert

vidjil.less list.js fix css remove need for resize

Since we are no longer using table-cell to display the list, we can do
away with the resize code which was designed to ensure the scrollbar get
added correctly to the div.
With the flex styling we just need to set an arbitrary height to 0px,
which will be overridden by the flex styling.
parent b8546192
......@@ -522,6 +522,7 @@ line {
flex: 1 1 auto;
height: 0px; // set scrollbar flex will override height
......@@ -382,19 +382,6 @@ List.prototype = {
* resize List view to match his div size
* */
resize: function () {
//hardcore resize (for firefox and ...)
//seriously 7 years after the first release of the html5 specs there is no simple way (except with chrome) to put a scrollbar inside a table-cell
document.getElementById("list_data").style.height = "";
document.getElementById("list_clones").style.height = "0px";
var data = document.getElementById(this.id_data).parentNode.offsetHeight;
if (data>100)data = 100
document.getElementById("list_data").style.height = data+"px";
var menu = document.getElementById("list_menu").offsetHeight;
var list = $("#" +;
document.getElementById("list_clones").style.height = (list-menu)+"px";
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