I had a little deeper look into it; Just from the dojo source, you
can`t control it via js.
We must change the dojo source for it, and this is a ugly thing.
At creation time of the dialog, the center of the page is calculated
and the dialog positioned
corresponding to it.
You can only influence the dialog position via the style attribute.
regards,
Gerald
On 10/10/06, liulocust <[EMAIL PROTECTED]> wrote:
After try it,It did not work.
the requirement position to show dialog may be dynamic.so the style can not
resolve the requirement.
I think maybe the dialogAttr.such as "dialogAttr="bgColor='white'
bgOpacity='0.5' toggle='fade' toggleDuration='250'",but I can not find the
position attribute .
Gerald Müllan wrote:
>
> Hi,
>
>
> Have you tried to influence the style behaviour over the "style" or
> "styleClass" attribute of the component? Don`t know if this works..
>
> However, in s:modalDialog there is the dojo` predefined style class
> dojoDialog.
> You can also define it a second time, like:
>
> .dojoDialog{
> position:relative !important;
> top:20% !important;
> }
>
> and overwrite the class attributes delivered with the dojo styles.
>
> If it works for you, can you make up a little wiki page on it? It
> would help others too.
>
> cheers,
>
> Gerald
>
> On 10/10/06, liulocust <[EMAIL PROTECTED]> wrote:
>>
>> When click a button to show the modelDialog,I want to display the
>> modalDialog
>> near the button not the screen center.
>>
>> Can s:modelDialog 's show method support the position parameter?
>>
>> And how to do this?thx.
>>
>> --
>> View this message in context:
>> http://www.nabble.com/s%3AmodalDialog-show-position-tf2415526.html#a6733272
>> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>>
>>
>
>
> --
> http://www.irian.at
>
> Your JSF powerhouse -
> JSF Consulting, Development and
> Courses in English and German
>
> Professional Support for Apache MyFaces
>
>
--
View this message in context:
http://www.nabble.com/s%3AmodalDialog-show-position-tf2415526.html#a6737011
Sent from the MyFaces - Users mailing list archive at Nabble.com.
--
http://www.irian.at
Your JSF powerhouse -
JSF Consulting, Development and
Courses in English and German
Professional Support for Apache MyFaces