Fix quick add dropdown positioning

This commit is contained in:
nathan 2024-07-05 13:12:33 -06:00
parent 40a7ef6e6b
commit aa45b87c59

View File

@ -517,7 +517,7 @@ egw.extend('links', egw.MODULE_GLOBAL, function()
select.setAttribute('id', 'quick_add_selectbox'); select.setAttribute('id', 'quick_add_selectbox');
// Empty label is required to clear value, but we hide it // Empty label is required to clear value, but we hide it
select.emptyLabel = "Select"; select.emptyLabel = "Select";
select.placement = "bottom end"; select.placement = "bottom";
parent.append(select); parent.append(select);
const plus = parent.querySelector("span"); const plus = parent.querySelector("span");
plus.addEventListener("click", () => { plus.addEventListener("click", () => {
@ -551,14 +551,14 @@ egw.extend('links', egw.MODULE_GLOBAL, function()
}); });
} }
select.select_options = options; select.select_options = options;
/*
select.updateComplete.then(() => select.updateComplete.then(() =>
{ {
// Adjust popup positioning to account for hidden select parts // Adjust popup positioning to account for hidden select parts
select.popup.distance = -32; select.select.popup.position = "top end";
select.select.popup.sync = "";
select.select.popup.distance = -32;
}); });
*/
}); });
}, },