I made this code to the left column from a table don´t move.
it´s ok if you drag an drop the bar, but if you click on left or right 
arrow the column move and then go back to the original position. 
Anyone knows how can I stop this double moviment?

function divScroll() {

var directive = {
restrict: 'A',
link: function (scope, element, attrs) {
var leftCont = element[0];
element.bind('scroll', function () {
$('#th1').css('left', leftCont.scrollLeft );
$('#th1').css('background-color', '#696969' );
$('#th1').css('z-index', '99' );
$('#th2').css('left', leftCont.scrollLeft);
$('#th2').css('background-color', '#696969' );
$('#th2').css('z-index', '99' );
for( var i = 1; i <= contLinha; i++){
$('#bodyCol1'+i).css('left', leftCont.scrollLeft );
$('#bodyCol1'+i).css('z-index', '99' );
$('#bodyCol2'+i).css('left', leftCont.scrollLeft );
$('#bodyCol2'+i).css('z-index', '99' );
}
});
}
};
return directive;
}

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to