JQuery UI Dialog causes page to open and close to ASP.NET

I have an ASP.NET C # page with thumbnails of images in it.
I created a script that opens jQuery UI Dialog

for every hover on a thumbnail that shows me a larger thumbnail in the dialog and when I find the dialog closes.
My little annoying problem is that in every mouseover

(launcher dialog opens) - the page gets "longer" - a scrollbar appears on the browser side and it seems like the page gets bigger when the dialog opens, but it shouldn't.
When I am on ( mouseout

) - the dialog disappears and the page returns to normal.
Because of this - when I hover over the thumbnails, my page "jumps".
I was looking for a solution for this and I added return false;

for every open dialog and close - and it still is no different. Sorry for the imperfect English and thanks to all the helpers!

+2


a source to share


1 answer


I finally got my solution - for everyone interested:

open: function(event, ui){  
   /*  
    * Scrollbar fix   
    */  
   $('body').css('overflow','hidden');  
} 

      



I added this to the dialog open event and it fixed the problem!

+3


a source







All Articles