MCPcopy
hub / github.com/angular-ui/ui-grid / getYOffset

Function getYOffset

lib/test/angular/1.6.7/angular.js:5318–5337  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

5316 }
5317
5318 function getYOffset() {
5319
5320 var offset = scroll.yOffset;
5321
5322 if (isFunction(offset)) {
5323 offset = offset();
5324 } else if (isElement(offset)) {
5325 var elem = offset[0];
5326 var style = $window.getComputedStyle(elem);
5327 if (style.position !== 'fixed') {
5328 offset = 0;
5329 } else {
5330 offset = elem.getBoundingClientRect().bottom;
5331 }
5332 } else if (!isNumber(offset)) {
5333 offset = 0;
5334 }
5335
5336 return offset;
5337 }
5338
5339 function scrollTo(elem) {
5340 if (elem) {

Callers 1

scrollToFunction · 0.70

Calls 3

isFunctionFunction · 0.70
isElementFunction · 0.70
isNumberFunction · 0.70

Tested by

no test coverage detected