Commit 6bae3585 authored by jerry wham's avatar jerry wham
Browse files

Update utils.js

parent 0d9307d4
......@@ -80,8 +80,7 @@ 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 = 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
var h = window.innerHeight-(50+40);// height of main - (height of header - height of footer)
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