OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
interface NgSelectShim {
appendTo?:string;
dropdownPanel?:{
_updateXPosition():void;
_updateYPosition():void;
}
}
// Force reposition as a workaround for BUG
// https://github.com/ng-select/ng-select/issues/1259
export function repositionDropdownBugfix(component?:unknown) {
const instance = component as NgSelectShim;
if (instance?.appendTo && instance?.dropdownPanel) {
setTimeout(() => {
// eslint-disable-next-line no-underscore-dangle
instance.dropdownPanel?._updateXPosition();
// eslint-disable-next-line no-underscore-dangle
instance.dropdownPanel?._updateYPosition();
}, 25);
}
}