Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

All other Modules /

Discuss all other Modules here.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Gallery 0.2.3 and popup alignment


Reply


4 Posts   2726 Views

Avatar
antonio.volpon

Community Member, 8 Posts

19 December 2008 at 10:13am

Hello.

I noticed that in Firefox the popup is not centered but on the right, while in Safari is centered. A colleague tried in Windows and had the same problem. If I return to Gallery 0.2.2 I have no problem with both.

Thanks,
Antonio

Avatar
Fading

Community Member, 15 Posts

20 December 2008 at 8:08pm

I have the same problem. Good luck getting a response.

Avatar
Liam

Community Member, 470 Posts

20 December 2008 at 8:43pm

I would assume it has something to do with the js lightbox script since that controls that.

I'd suggest possibly looking into the gallery extension as it's a lot better and I believe will be merged into the gallery eventually.

http://www.silverstripe.org/all-other-modules/show/250910

Avatar
enno0815de

Community Member, 1 Post

29 December 2008 at 1:49pm

hey,

I'm new in the forum and in the silverstripe framework! i just added the gallery module and get position failure on the popup!
i solved this by compare the lightwindow.js from the module with the original js-file.

Here the code-snippet that corupt my display:

if (!this.windowActive) {
// Position the window
$('lightwindow_container').setStyle({
left: this.dimensions.container.width/2 +'px',
top: -(this.dimensions.container.height/2)+'px'
});
}

hre the correct code:

if (!this.windowActive) {
// Position the window
$('lightwindow_container').setStyle({
left: -(this.dimensions.container.width/2)+'px',
top: -(this.dimensions.container.height/2)+'px'
});
}

i hope i could help anyone, and please, dont blam me if this is anywhere posted ;)

greetz enno