mardi 4 août 2015

jquery dialog popup scroll issue in chrome

I am experiencing an issue with Jquery dialog popup .

Whenever I scroll down the content in dialog and close it, the focus is not getting automatically returned to the element that had focus when the dialog was opened. After the occurrence whenever I open a pop up, I have to manually scroll to view the pop up.

I am seeing this issue only in chrome.

Do we have any workaround for this issue ?

$(document).ready(function () {
$(document).on("click",function(){
    $("iframe-id").attr('src', $(this).attr("href"));
 $("div-id").dialog({
       width: 'auto',
        height: 'auto',
        modal: true,
            position:({
      my: "center",
      at: "center",
      of: "link id",
      collision:"none"
    })
 });        
return false;        
});

});

I have enclosed an iframe within a div and will be populating the iframe by an url content. I am using jquery v1.11.3.js and jquery 1.10.1 css



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire