Commit 0d9307d4 authored by jerry wham's avatar jerry wham
Browse files

Update utils.js

parent 360a7108
......@@ -80,6 +80,8 @@ doAction('add','add');
danger();
var heightOfTextarea = ((widthAndHeight('height','section')-(2*80)-(2*42)-(50*2))/2);
if (heightOfTextarea < 200) heightOfTextarea = 200;
var side = document.querySelector('aside');
var h = (120-42+40)*(side.children.length-1);// (height of thumb - height of h2 + height of footer) * nb of thumbs
var h = widthAndHeight('height','#main')-(50+42+40)-(2*heightOfTextarea)-(2*42)-(2*10);// height of main - (height of thumb - height of h2 + height of footer) - 2* heightOfTextarea - 2* height of h2 - 2* padding
side.style="height:"+h+"px;";
\ No newline at end of file
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