diff --git a/static/js/user_profile_2.js b/static/js/user_profile_2.js index 35d96b8..2858925 100644 --- a/static/js/user_profile_2.js +++ b/static/js/user_profile_2.js @@ -480,7 +480,15 @@ function selectedUserMessenger (ticket_id=null,user_id=null){ } document.querySelector(".info_profile").innerHTML = data.html; document.querySelector(".enter-message-inp").focus() - document.querySelector(".tab_user_messanger.select").scrollIntoView({behavior: "smooth"}); + // document.querySelector(".tab_user_messanger.select").scrollIntoView({behavior: "smooth"}); + + let el = document.querySelector(".tab_user_messanger.select") + let cont = document.querySelector(".insert_users") + if (el && cont){ + let el_pos = el.offsetTop + cont.scrollTop = el_pos + } + let user_type = getInfoAboutUser() if (user_type === 'mobile') { closeCurtain()