From aa45b87c598e81642d33b5d86d15c4a3b7b2ff9e Mon Sep 17 00:00:00 2001 From: nathan Date: Fri, 5 Jul 2024 13:12:33 -0600 Subject: [PATCH] Fix quick add dropdown positioning --- api/js/jsapi/egw_links.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/api/js/jsapi/egw_links.js b/api/js/jsapi/egw_links.js index 80930fecb2..08f9c6cab5 100644 --- a/api/js/jsapi/egw_links.js +++ b/api/js/jsapi/egw_links.js @@ -517,7 +517,7 @@ egw.extend('links', egw.MODULE_GLOBAL, function() select.setAttribute('id', 'quick_add_selectbox'); // Empty label is required to clear value, but we hide it select.emptyLabel = "Select"; - select.placement = "bottom end"; + select.placement = "bottom"; parent.append(select); const plus = parent.querySelector("span"); plus.addEventListener("click", () => { @@ -551,14 +551,14 @@ egw.extend('links', egw.MODULE_GLOBAL, function() }); } select.select_options = options; - /* + select.updateComplete.then(() => { // 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; }); - - */ }); },