User avatar
mallmis
Posts: 17
Joined: Fri Nov 16, 2012 1:20 pm

Gallery moves if not in viewport

Hi,

its me again. If my galleryx is not 100 % in the viewport, everything moves
into the actual viewport. What can I do?

http://www.angel-holidays.com

Thank you!

Michael
User avatar
RoadRash
Posts: 8249
Joined: Tue Jul 15, 2008 6:43 pm
Location: Fredrikstad, Norway
Contact: Website

Re: Gallery moves if not in viewport

Hi Michael,

Add this to your highslide-config.js file:

Code: Select all

hs.expandDuration = 0;
You have another problem with your page: I can see that you have included your highslide-config.js file twice (instead of once) in the head of the page. This will result in a stray control bar in the top left corner of your page.
2014-05-28_18-18-46.png
2014-05-28_18-18-46.png (522.46 KiB) Viewed 3749 times
Hilde
Highslide Support Team

Overview of my Highslide sample pages: RoadRash.no
User avatar
mallmis
Posts: 17
Joined: Fri Nov 16, 2012 1:20 pm

Re: Gallery moves if not in viewport

Hi and thanks a lot for your reply and help.

Please take a look at the german main page. If I click on a thumb and the gallery
is not in viewport the gallery moves to actual viewport.

The double config file is deleted.

Thanks a lot,

Michael
User avatar
mallmis
Posts: 17
Joined: Fri Nov 16, 2012 1:20 pm

Re: Gallery moves if not in viewport

Hello again,

just for information, this:

Code: Select all

hs.expandDuration = 0;
is also done, but nothing changed.

Do I have to give the container other position settings per css?

Thanks,

Michael
User avatar
mallmis
Posts: 17
Joined: Fri Nov 16, 2012 1:20 pm

Re: Gallery moves if not in viewport

Hi,

no one a solution?

Thank you,

Michael
User avatar
mallmis
Posts: 17
Joined: Fri Nov 16, 2012 1:20 pm

Re: Gallery moves if not in viewport

Hi,

the gallery is on this page again:

http://www.angel-holidays.com/inc/de/toppangebote1.php

same effect.


Thanks,

Michael
MisterNeutron
Posts: 440
Joined: Sun Aug 18, 2013 11:20 am

Re: Gallery moves if not in viewport

Try commenting out the entire function labeled "Keep the position after window resize."
User avatar
RoadRash
Posts: 8249
Joined: Tue Jul 15, 2008 6:43 pm
Location: Fredrikstad, Norway
Contact: Website

Re: Gallery moves if not in viewport

Hi Michael,

It took me a while, but I finally spotted it; you have fixedControls set to 'fit' in hs.addSlideshow. This ensures that the popup always stays within the viewport.

Remove the highlighted line:
Image
Hilde
Highslide Support Team

Overview of my Highslide sample pages: RoadRash.no

Return to “Highslide JS Usage”