Skip to content

Commit

Permalink
fix(pipelines): cleaner resize of sticky headers on window resize
Browse files Browse the repository at this point in the history
  • Loading branch information
anotherchrisberry committed Mar 29, 2017
1 parent 7b8c8b3 commit a8fc72f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion app/scripts/modules/core/presentation/main.less
Expand Up @@ -284,7 +284,6 @@ html {
}
.full-content {
margin: 0 25px;
transition: width 0.25s linear;
flex-direction: column;
width: 100%;
@media (max-width:768px) {
Expand Down
Expand Up @@ -35,7 +35,7 @@ export class StickyHeaderController implements ng.IComponentController {
this.$scrollableContainer = this.$element.closest('[sticky-headers]');
this.isSticky = false;
this.notifyOnly = this.$attrs.notifyOnly === 'true';
this.positionHeader = throttle(this.positionHeader, 50);
this.positionHeader = throttle(this.positionHeader, 50, {trailing: true});

if (!this.$scrollableContainer.length) {
this.$log.warn('No parent container with attribute "sticky-header"; headers will not stick.');
Expand Down

0 comments on commit a8fc72f

Please sign in to comment.