Fix for progress table background not resizing

when the post-processing started/ended.
pull/1/head
Ryszard Goń 10 years ago
parent 4e3e2acc69
commit 3cdbd5f5c6

@ -171,10 +171,16 @@
</fieldset> </fieldset>
<script> <script>
var maxh = Math.max(document.getElementById("progress").clientHeight, document.getElementById("indexsize").clientHeight, document.getElementById("queues").clientHeight); function setTableSize() {
document.getElementById("indexsize").style.height = maxh + "px"; var maxh = Math.max(document.getElementById("progress").children[1].clientHeight, document.getElementById("indexsize").children[1].clientHeight, document.getElementById("queues").children[1].clientHeight) + 42;
document.getElementById("progress").style.height = maxh + "px"; if(lastMaxh !== maxh) {
document.getElementById("queues").style.height = maxh + "px"; var lastMaxh = maxh;
document.getElementById("indexsize").style.height = maxh + "px";
document.getElementById("progress").style.height = maxh + "px";
document.getElementById("queues").style.height = maxh + "px";
}
}
window.setInterval("setTableSize()", 1000);
</script> </script>
<p class="watchCrawler" style="clear:both;"> <p class="watchCrawler" style="clear:both;">
#(info)# #(info)#

Loading…
Cancel
Save