Fix #16659 - remove auto set left position for the dropdown position

It made the arrow not to be aligned with the dropdown, the user could not use the dropdown
Signed-off-by: William Desportes <williamdes@wdes.fr>
This commit is contained in:
William Desportes 2021-03-12 18:47:59 +01:00
parent 80780fbebc
commit 5fbd98e988
No known key found for this signature in database
GPG Key ID: 90A0EF1B8251A889

View File

@ -527,12 +527,7 @@ var makeGrid = function (t, enableResize, enableReorder, enableVisib, enableGrid
// only show when not resizing or reordering
if (!g.colRsz && !g.colReorder) {
var pos = $(obj).position();
// check if the list position is too right
if (pos.left + $(g.cList).outerWidth(true) > $(document).width()) {
pos.left = $(document).width() - $(g.cList).outerWidth(true);
}
$(g.cList).css({
left: pos.left,
top: pos.top + $(obj).outerHeight(true)
})
.show();