Great thanks!
Is it possible to resize the shadow when the dialog automatically
changes height?
For example: I load an image file inside the dialog and initially the
size of the dialog is the size of the loading image. After the image
has loaded, the dialog resizes to the size of the image file. The
problem is that the shadow does not resize with the dialog.
To make this work I had to modify the code to have a function to
resize the shadow. I call this function inside the img.load function,
like this:
$photoImg.load(function() {
$photoLoadingImg.hide();
$photoImg.fadeIn();
$dialog_photoViewer.dialog("position");
});
The code added is this:
position: function() {
this._position(this.options.position);
try { this._refreshShadow(); } catch(err){};
},
Any thought would be appreciated.
Thanks,
On Mar 11, 5:06 am, "Richard D. Worth" <[email protected]> wrote:
> No need to modify the code. You can provide the effect name as a string:
>
> $("#dialog").dialog({
> hide: "fadeOut"
>
> });
>
> or you can provide a hash if you have additional options, such as:
>
> $("#dialog").dialog({
> hide: {effect: "fadeOut", duration: 5000}
>
> });
>
> - Richard
>
> On Tue, Mar 10, 2009 at 6:15 PM, Paradime Web
> <[email protected]>wrote:
>
>
>
> > Is it possible to do this with 1.7 ?
>
> > I want the dialog to fadeOut on close. Right now, I have to modify
> > the code as follows:
>
> > if (this.options.hide == "fadeOut") {
> > this.uiDialog.fadeOut(1000, function() {
> > self._trigger('close', event);
> > });
> > }
> > else {
> > this.uiDialog.hide();
> > this._trigger('close', event);
> > }
>
> > Thanks,
>
> > On Feb 20, 2:15 am, Paradime Web <[email protected]> wrote:
> > > Is it possible to have a fadeOut effect on dialog close?
>
> > > From the source, I can see the line:
>
> > > uiDialog.hide(options.hide);
>
> > > What kind of hide options can we pass in? Seems very limited to either
> > > 'fast' 'slow'. I just want it to fade in and out.
>
> > > Thanks,
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---