so are we saying that:

integer Height in pixels, use -1 for auto-height. When set Modalbox will 
operate in 'fixed-height' mode.

setting height = -1 is mandatory? That is not clear from the docs nor that this 
would have fixed my issue.

It works great and that is all that matters. 

Ted

--- On Fri, 9/17/10, Farrukh Ijaz <[email protected]> wrote:

From: Farrukh Ijaz <[email protected]>
Subject: Re: two modal dialogs on a page problem
To: "Theodore Petrosky" <[email protected]>
Cc: "WO-Apple-Dev Development" <[email protected]>
Date: Friday, September 17, 2010, 5:59 PM

Hi Ted,
The fix for this is to set the height = -1 for ModalDialogOne. It's mentioned 
in the documentation.
http://webobjects.mdimension.com/hudson/job/Wonder54/javadoc/er/ajax/AjaxModalDialog.html

Farrukh
On 2010-09-17, at 11:17 PM, Chuck Hill wrote:
I often have several on one page, so my first guess is "doing something wrong". 
 I don't know what.  Check for JavaScript errors.

Chuck



On Sep 17, 2010, at 1:03 PM, Theodore Petrosky wrote:

I have a page that has links to two different AMDs.

ModalDialogOne: AjaxModalDialog {
        title = "Dialog One";
        label = "Dialog One";
        slideUpDuration = ".1";
        slideDownDuration = ".1";
        action = bringInOne;
                height = -1;
}

ModalDialogTwo: AjaxModalDialog {
        title = "Dialog Two";
        label = "Dialog Two";
        slideUpDuration = ".1";
        slideDownDuration = ".1";
        action = bringInTwo;
        height = 500;
}

Notice that the only difference is ModalDialogTwo has "height = 500;"

Problem:

if I click the link to ModalDialogOne, it displays and has information that 
makes the dialog about 350 px tall. I can display ModalDialogOne over and over. 
But if I display ModalDialogTwo, ModalDialogOne breaks and no longer will 
display correctly, it is only 25px high with a scroll bar on the side. The only 
way to fix it is to reload the base page, or ModalDialogTwo can not have a 
height statement.

If anyone is interested, I have a little demo that I can attach.

Should I open a Jira on this? or am I doing something wrong?

Ted



_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/chill%40global-village.net

This email sent to [email protected]

-- 
Chuck Hill             Senior Consultant / VP Development

Practical WebObjects - for developers who want to increase their overall 
knowledge of WebObjects or who are trying to solve specific problems.    
http://www.global-village.net/products/practical_webobjects







 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/farrukh.ijaz%40fuegodigitalmedia.com

This email sent to [email protected]




 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to