Hi,

I am testing the Galleria module out on a fresh Drupal 6 install. While it is perfectly working on Firefox, the page scrolls up (not to the top) when I click on a thumbnail in Safari or Opera. Obviously, you need some content above the Galleria to see this happen.
By the way, I am using it with Imagefield.

Any idea where the problem could come from?

Thanks in advance,

Matt

Comments

ilfelice’s picture

I can confirm this using Opera 9.5 in Ubuntu.

kass’s picture

yes, i got this problem too. but my early website don't have this problem. the both website are on different server,this mean anything?

kass’s picture

after look around my web, i think Galleria have a problem with jquery plug-in or jquery update or both because after i remove jquery plug-in & jquery update. Galleria back to normal, no more page scroll up ;)

auzigog’s picture

Has any progress been made on this? I have the same issue.

It's seems like it would be easy to debug. Just comparing the differences between a normal galleria and a Drupal galleria should help in solving it.

In reference to kass's comment, I find it hard to believe that is true because Galleria requires jquery. But I haven't looked into it too much, so I'm not sure.

bcobin’s picture

Same issue. Subscribing.

dsp1’s picture

Same issue too. Subscribing.

Testing to see if I can switch to this from Gallery2 now that I have upgraded to Drupal 6.

pribeh’s picture

Help. Subscribing.

jweedman’s picture

Subscribing... Super Annoying.

jweedman’s picture

Status: Active » Needs review

Hey guys and gals,

Like most of you, probably, I was pulling my hair out with this. It wasn't a HUGE ordeal, but if you're like me, I was still bothered that those 5% of my Safari users were having to scroll down each time they clicked a thumb. Well... no thanks to me, all the credit to "bradybouchard" who figured this out for us in a post on Google Code. To be fair to all those involved, I'm going to post a link to where I found the answer rather than put it here:

http://code.google.com/p/galleria/issues/detail?id=46#c4

Hope it helps - worked like a charm for me.

-- jweedman

langworthy’s picture

Confirming this is also a problem in Chrome on OSX.

I'm not sure how a patch could be created using the fix in #9 as the height and min-height is dependent on the Imagecache size.

We put the following code in a custom Features module (this fix can work in any custom module):

function our_feature_init() {
  drupal_add_css(drupal_get_path('module', 'our_feature') . '/our_feature.css');
}

our_feature.css

#galleria-content .galleria_container {
  height: 360px;
  min-height: 360px;
}
adubovskoy’s picture

/me use that solution. Simple add in js for galleria pages.

$('#galleria-content').click(function(){
  $('.galleria_container').height($('.galleria_container img').height());
});
jerry’s picture

Confirming that the JS fix in #11 worked for me as well.

leviathan23’s picture

Hi,

im not sure where exactly i should add the JS code in #11 to make this fix work.
Can anyone give me a hint? TIA :-)

leviathan23’s picture

Solved!
Adding a height to #main-image in galleria.css worked pretty well for me.

slcp’s picture

Now this is strange...adding a height to #main-image solves the problem but I only experience the problem as an anonymous user...now what is that all about?!

mimmotron’s picture

Thanks guys