Code above works with FF but not IE. Code below works with both:
open: function(){
var obj = this;
if ($(this).data('shadow.dialog')) // check if this dialog has a
shadow
setTimeout(function(){ // required because shadow is created
only after the dialog is finished being displayed
var shadow;
if((shadow = obj.parentNode.nextSibling) &&
shadow.className == 'ui-widget-shadow'){ //shadow is normally next
sibling of parent node of
dialog base div.
var offset = $(obj.parentNode).offset();
$(shadow).css({
top: offset.top + 3,
left: offset.left + 3
});
};
}, 1000); // 1000 may seem like a lot, but 100 is not
enough.
the fnct must execute after the shadow is created.
}
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"jQuery UI" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/jquery-ui?hl=en
-~----------~----~----~----~------~----~------~--~---