Every line of 'jquery getheight' code snippets is scanned for vulnerabilities by our powerful machine learning engine that combs millions of open source libraries, ensuring your JavaScript code is secure.
99 export function getHeight(elem) { 100 return elem.offsetHeight || elem.clientHeight; 101 }
68 function height(element) { 69 70 if(element == window || element == document) { 71 return element.innerHeight; 72 } 73 74 var height = css(element, "height"); 75 76 return parseFloat(height); 77 78 }
39 export function getVisibleHeight(element) { 40 return element === window ? element.innerHeight : element.getBoundingClientRect().height; 41 }
159 function getScrollHeight(elementID) { 160 var height = 0; 161 var children = d3.select("#" + _this.table_name + "Table tbody").node().children; 162 for (var i = 1; i < children.length; i++) { // the first child is always the header 163 if (children[i].id === elementID) { 164 return height; 165 } 166 height += children[i].scrollHeight; 167 } 168 return height; 169 }
1 function iFrameHeight(iframe) 2 { 3 var doc = 'contentDocument' in iframe ? iframe.contentDocument : iframe.contentWindow.document; 4 var height = parseInt(doc.body.scrollHeight); 5 6 if (!document.all) 7 { 8 iframe.style.height = parseInt(height) + 60 + 'px'; 9 } 10 else if (document.all && iframe.id) 11 { 12 document.all[iframe.id].style.height = parseInt(height) + 20 + 'px'; 13 } 14 }
319 function minHeight(element) { 320 return parseInt($(element).css('min-height'), 10) || 0; 321 }
32 computedHeight(element: any): number { 33 return parseInt(getComputedStyle(element).getPropertyValue('height'), 10); 34 }
528 function height() { 529 var style; 530 if(!this.length) { 531 return null; 532 } 533 if(this.dom[0] instanceof Window) { 534 return this.dom[0].innerHeight; 535 } 536 style = window.getComputedStyle(this.dom[0], null); 537 return parseInt(style.getPropertyValue('height')); 538 }
137 function getHeight(ele) { 138 139 var $ele = $(ele), height = "auto"; 140 141 if ($ele.is(":visible")) { 142 height = $ele.outerHeight(); 143 } else { 144 145 var tmp = { 146 position : $ele.css("position"), 147 visibility : $ele.css("visibility"), 148 display : $ele.css("display") 149 }; 150 151 height = $ele.css({position: 'absolute', visibility: 'hidden', display: 'block'}).outerHeight(); 152 153 $ele.css(tmp); // reset element 154 } 155 156 return height; 157 }
51 export function getWindowHeight() { 52 if (!executionEnvironment().canUseDOM) { 53 return 0; 54 } 55 const w = window; 56 const d = document; 57 const e = d.documentElement; 58 const g = d.getElementsByTagName('body')[0]; 59 return w.innerHeight || e.clientHeight || g.clientHeight; 60 }