This commit is contained in:
Yuri Kuznetsov
2024-07-21 15:05:03 +03:00
parent 836de2d624
commit 344714fda0
+4 -3
View File
@@ -879,17 +879,18 @@ class ViewHelper {
/**
* Calculate a content container height.
*
* @param {JQuery} $el Element.
* @param {HTMLElement|JQuery} element An element.
* @returns {number}
*/
calculateContentContainerHeight($el) {
calculateContentContainerHeight(element) {
const smallScreenWidth = this.themeManager.getParam('screenWidthXs');
const $window = $(window);
const footerHeight = $('#footer').height() || 26;
let top = 0;
const element = $el.get(0);
element = $(element).get(0);
if (element) {
top = element.getBoundingClientRect().top;