Problem with lightbox

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Problem with lightbox

Sylvain pralon
Hello,

I want to use a lightbox effect to set some parameters of a seaside widget.
In fact i have a root component in my application which have children,
and children could have children too.
In my widget, I have an anchor and when I click on it I want to open a
lightbox, just with a WASelection component.
It opens but not in the upper left corner of my windows. I take a look
on the script and css of the SULightbox object and normally it should be
in this corner. (take a look at the screenshot)
Any idea ?

Thanks

Sylvain




_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside

Capturer.JPG (31K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

RE: Problem with lightbox

Bany, Michel
Hi Sylvain,

As far as I known, with Scriptaculous out of the box, the intention is
to place the box at the center of the browser's window, certainly not in
the upper left corner. What exactly in the javascript and stylesheets
makes you think that the box should go to that corner?

There were some bugs regarding the exact positioning of the box that
were fixed in recent versions. It is therefore interesting that you tell
us what version of Seaside and Scriptaculous you are using.

Cheers,
Michel.

> -----Original Message-----
> From: [hidden email]
> [mailto:[hidden email]] On Behalf
> Of Sylvain Pralon
> Sent: lundi, 23. juillet 2007 12:56
> To: [hidden email]
> Subject: [Seaside] Problem with lightbox
>
> Hello,
>
> I want to use a lightbox effect to set some parameters of a
> seaside widget.
> In fact i have a root component in my application which have
> children, and children could have children too.
> In my widget, I have an anchor and when I click on it I want
> to open a lightbox, just with a WASelection component.
> It opens but not in the upper left corner of my windows. I
> take a look on the script and css of the SULightbox object
> and normally it should be in this corner. (take a look at the
> screenshot) Any idea ?
>
> Thanks
>
> Sylvain
>
>
>
>
_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Problem with lightbox

Sylvain pralon
As you can see on the screenshot I sent, the lightbox is not placed on
the center of browser's window.
In fact the lightbox div is well placed in the center of the overlay
div. The problem is that the overlay div is placed on the upper left
corner of the seaside component which called it. That's why on my
screenshot you can see the transparent black background of the overlay
div not beginning at the upper left corner of my browser's window but
somewhere else in this same window.
The script method on the SULightbox object normally get the window
dimension and nothing else, so I do not understand why I get such a
behavior.

I take the last version of seaside and scriptaculous last friday on the
cincom public repository.

thanks.

Sylvain

Bany, Michel a écrit :

> Hi Sylvain,
>
> As far as I known, with Scriptaculous out of the box, the intention is
> to place the box at the center of the browser's window, certainly not in
> the upper left corner. What exactly in the javascript and stylesheets
> makes you think that the box should go to that corner?
>
> There were some bugs regarding the exact positioning of the box that
> were fixed in recent versions. It is therefore interesting that you tell
> us what version of Seaside and Scriptaculous you are using.
>
> Cheers,
> Michel.
>
>  
>> -----Original Message-----
>> From: [hidden email]
>> [mailto:[hidden email]] On Behalf
>> Of Sylvain Pralon
>> Sent: lundi, 23. juillet 2007 12:56
>> To: [hidden email]
>> Subject: [Seaside] Problem with lightbox
>>
>> Hello,
>>
>> I want to use a lightbox effect to set some parameters of a
>> seaside widget.
>> In fact i have a root component in my application which have
>> children, and children could have children too.
>> In my widget, I have an anchor and when I click on it I want
>> to open a lightbox, just with a WASelection component.
>> It opens but not in the upper left corner of my windows. I
>> take a look on the script and css of the SULightbox object
>> and normally it should be in this corner. (take a look at the
>> screenshot) Any idea ?
>>
>> Thanks
>>
>> Sylvain
>>
>>
>>
>>
>>    
> _______________________________________________
> Seaside mailing list
> [hidden email]
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
>  
_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside