diff --git a/static/css/styles.css b/static/css/styles.css index 45474cb..452fd8e 100644 --- a/static/css/styles.css +++ b/static/css/styles.css @@ -145,6 +145,7 @@ html, body{ max-width: 1280px; position: relative; min-height: 695px; + max-height: 100%; } .wrapper_content.m_h_0{ diff --git a/static/js/user_profile_2.js b/static/js/user_profile_2.js index 094249e..5898ba1 100644 --- a/static/js/user_profile_2.js +++ b/static/js/user_profile_2.js @@ -36,6 +36,7 @@ function select_tab_profile (el,url,owner_type=null) { // enctype: 'json', data: JSON.stringify(data), success: function(data){ + let scroll_top = window.scrollY document.querySelector(".info_profile").innerHTML = data.html; let list_div = document.querySelectorAll('.menu_profile div'); list_div.forEach(el=>{ el.classList.remove('selected'); }); @@ -61,7 +62,10 @@ function select_tab_profile (el,url,owner_type=null) { // block: "end", // inline:'nearest' // }) - document.querySelector("body").scrollTop = 0 + window.scrollTo({ + top: 0, + behavior: "smooth", + }); middleWareJS() let user_type = getInfoAboutUser() if (user_type === 'mobile') {