0 Replies Latest reply on Sep 9, 2009 9:15 AM by Bernard Labno

    Modalpanel onshow is to early

    Bernard Labno Master

      Hello,
      I have js code inside modalpanel that attaches some javascript to image inside that modalpanel. This code measures width and height of image via jQuery.width(), but when modalpanel has display:none and width:0 and height:0 then jQuery calculates image's width as 0 (it has 600 set in html code, but offsetWidth is still 0). I'm working around this by executing the code with a timeout, but i see that on different computers that timeout should be different.
      What can i do to call my script right after modalpanel (autosizable) is shown (onshow is too early! i tired it already) and ready for jQuery.width calculation ?