Skip to content

Commit fd22168

Browse files
committed
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 976cc00 commit fd22168

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -559,7 +559,7 @@ angular.module('patternfly.views').directive('pfListView', function ($timeout, $
559559
}
560560
nextElement = nextElement.parentElement;
561561
}
562-
});
562+
}, 100);
563563
};
564564
},
565565

0 commit comments

Comments
 (0)