I have a div, that increases size dynamically. On top of the page I have button "Add note". When I press "Add note" I want to scroll page to bottom of the page (where this new note appears). This is .aspx page on Sharepoint.
Currently I have this kind of solution, that doesn't work some why:
<a ng-click="AddNote()" onclick="GetMeetingsHeight()" href="#">Add note</a> <%-- Adds new note --%>
function GetMeetingsHeight() {
var winHeight = $('.detailsdiv').height(); // It works, when I ask by class
document.getElementById("winHei").innerHTML = winHeight;
window.scrollTo(0, winHeight);
}