INNER CODE UNIT · JavaScript
rightDivHeight
KarchinLab/open-cravat · cravat/webresult/nocache/js/main.js:148
var rightDivHeight = browserHeight - 70;
var tableDivHeight = 0;
if (tableDiv) {
tableDivHeight = tableDiv.offsetHeight;
if (tableDivHeight > rightDivHeight - 50) {
tableDivHeight = rightDivHeight - 50;
}
}
var nsDragBarHeight = 0;
if (nsDragBar) {
nsDragBarHeight = nsDragBar.offsetHeight;
}
var cellValueDivHeight = 0;
if (cellValueDiv) {
cellValueDivHeight = cellValueDiv.offsetHeight;
if (cellValueDivHeight > rightDivHeight - tableDivHeight - 100) {
cellValueDivHeight = rightDivHeight - tableDivHeight - 100;
cellValueDiv.style.height = cellValueDivHeight + 'px';