mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-01 04:13:28 +01:00
Fix quick add dropdown positioning
This commit is contained in:
parent
40a7ef6e6b
commit
aa45b87c59
@ -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;
|
||||||
});
|
});
|
||||||
|
|
||||||
*/
|
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user