The shadow has been removed from dialog due to various issues.

On Mar 1, 2:11 am, Andrew <[email protected]> wrote:
> I figured out a much better solution to fix this issue....
>
> go into your code, mine is in my jquery-ui-personalized-1.6rc6.js
> file... Also could be in ui.dialog.js etc.
>
> Inside the code (mine is line 4218) after this function
>
> $.widget("ui.dialog", {
>
>         _init: function() {
>
> add this function
>
>         refresh: function() {
>                                 this._refreshShadow(1);
>         },
>
> Then from within your code you can call something like this...
> $("#dialogbox").dialog("refresh");
>
> At that point it will redraw the shadow for you simulating the
> resize.
>
> I'm sure you can also use an $.extend to do this unobstrusively, but
> for now, this is a quick fix.
>
> Dropping this on my blog too where I may put updates if I decide to
> write a patch (extending).
>
> http://geedew.com/blog/2009/03/01/jquery-dialog-shadow-issuesjquery-d...
>
> Drew
> On Feb 3, 8:57 pm, Mikey <[email protected]> wrote:
>
> > 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to