Skip to content

Commit 95bd2a1

Browse files
Merge pull request #415 from jjlangholtz/fix-list-view-last-dropdown
Fix list view drop direction updates
2 parents fe957b0 + 8961823 commit 95bd2a1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/views/listview/list-view-directive.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,7 @@
419419
</file>
420420
</example>
421421
*/
422-
angular.module('patternfly.views').directive('pfListView', function ($timeout, $window, pfUtils) {
422+
angular.module('patternfly.views').directive('pfListView', function ($window, pfUtils) {
423423
'use strict';
424424
return {
425425
restrict: 'A',
@@ -545,7 +545,7 @@ angular.module('patternfly.views').directive('pfListView', function ($timeout, $
545545
// update the actions based on the current item
546546
$scope.updateActions(item);
547547

548-
$timeout(function () {
548+
$window.requestAnimationFrame(function () {
549549
var parentDiv = undefined;
550550
var nextElement;
551551

0 commit comments

Comments
 (0)