I'm showing child process stdout and std error via socket on code mirror its working well but scroll bar resides on top it fails to update scroll bar according to the content
<div ng-model="log"
ui-refresh="vm.refreshCodemirror"
ui-codemirror="{lineNumbers: true, autoFocus:true, theme:'twilight',readOnly: 'true',lineWrapping : true,mode: 'Javascript'}">
</div>
var controller = this;
$scope.refreshStream = function ()
{
controller.refreshCodemirror++;
};