Skip to content

Sticky element position don't rerendred on resize  #38

@carpogoryanin

Description

@carpogoryanin

Hi.
I use this code for program usage of angular-sticky and add resize into events. resize events working, but sticky elemen not rerendered. Only after scroll it fix position:

angular.element($window).bind('scroll resize', function() {
	// draw the sticky element through an apply as the event wasn't from Angular
	$scope.$apply(function() {
		stickyElement.draw();
	});
});

Do you have some ideas what wrong?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions