Revision faf4f771
Added by Andreas Kohlbecker almost 8 years ago
modules/cdm_dataportal/cdm_taxontree/js/cdm_taxontree.js | ||
---|---|---|
164 | 164 |
var lineHeight = focusedElement.css('line-height'); |
165 | 165 |
lineHeight = lineHeight.replace('px', ''); |
166 | 166 |
lineHeight = lineHeight.length == 0 ? 18 : lineHeight; |
167 |
cdm_taxontree_parent.find('div.' + vertical_scroller_selector).scrollTo(focusedElement, {duration: 400, axis:'y', offset:-2 * lineHeight});
|
|
167 |
cdm_taxontree_parent.find('div.' + vertical_scroller_selector).scrollTop(focusedElement.position().top - (4 * lineHeight));
|
|
168 | 168 |
} |
169 | 169 |
|
170 | 170 |
} |
Also available in: Unified diff
removing js library jquery.scrollTo