Reset Popup position

Hi Webix team,

If I open a combo and scroll a window, combo popup is not getting hidden. To fix this I have added explicit event like below in which I am explicitely hiding all the popup.

$(window).scroll(function() {
$(".webix_popup").css(“display”,“none”);
$(".webix_point_left").css(“display”,“none”);
$(".webix_point_top").css(“display”,“none”);
$(".webix_point_right").css(“display”,“none”);
$(".webix_point_bottom").css(“display”,“none”);
});

My popup is getting hidden. But when I reopen a combo again as there is Fixed top: 195px; is given it does not take its position relatively. So is it possible to redefined the position relatively and how?

Thanks,

try this

$(window).scroll(function(){
    $(".webix_popup").each(function(){
        $$($(this).attr("view_id")).hide();
    });
});

By default, all popups will be closed on external click, so instead of iterating all popups, you can just call global click event on window scroll:

webix.callEvent("onClick", [])