Skip to content

Commit

Permalink
fix angular-ui#2542 (resize): juddering when resizing a pinned grid
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulL1 committed Jan 16, 2015
1 parent fe38be0 commit 1c3fdec
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion misc/tutorial/203_pinning.ngdoc
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ It is also possible to disable pinning on column level. Note the 'id' column def
</file>
<file name="main.css">
.grid {
width: 500px;
width: 100%;
height: 400px;
}
</file>
Expand Down
2 changes: 1 addition & 1 deletion src/js/core/directives/ui-grid.js
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ angular.module('ui.grid').directive('uiGrid',
grid.gridWidth = $scope.gridWidth = gridUtil.elementWidth($elm);
grid.gridHeight = $scope.gridHeight = gridUtil.elementHeight($elm);

grid.queueRefresh();
grid.refreshCanvas(true);
}

angular.element($window).on('resize', gridResize);
Expand Down

1 comment on commit 1c3fdec

@PaulL1
Copy link
Owner Author

@PaulL1 PaulL1 commented on 1c3fdec Jan 16, 2015

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually fixes angular-ui#1957

Please sign in to comment.