Skip to content

Commit 9151bb2

Browse files
jjlangholtzpatternfly-build
authored andcommitted
Add explicit $timeout delay for determining drop direction
In #setDropMenuLocation, the bounding rectangle for the menu was being calculated before it was rendered causing the height to be 0. For some reason the $timeout was not waiting for the digest cycle to complete, however, adding a 100 ms delay consistently drops the menu in the proper direction. Fixes #399
1 parent 176f7af commit 9151bb2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -575,7 +575,7 @@ angular.module('patternfly.views').component('pfListView', {
575575
}
576576
nextElement = nextElement.parentElement;
577577
}
578-
});
578+
}, 100);
579579
};
580580

581581
ctrl.itemClick = function (e, item) {

0 commit comments

Comments
 (0)