javascript - AngularJS watch element height -
i trying watch element height in angularjs this:
$scope.$watch(function(){return $("#content").outerheight()}, function(){$("#sidebar").outerheight($("#content").outerheight())}, true);
the function being called , update #sidebar
height. however, when #content
height change, doesn't update #sidebar
height. change when $apply()
triggered.
how can make #sidebar
height updated #sidebar
height changing?
Comments
Post a Comment