On my page I am using Colorbox twice:

  1. as supplement of Gallery Formatter powered gallery (big grey loupe on the image)
  2. as preview for PDF documents (with the help of option to load Colorbox). You can try it by clicking to small loupe in the bottom table (entitled "Související dokumenty")
  3. It is working well, but if you click on the second link displayed in Colorbox, you will see strange "jump" to the beginning of page (position of colorbox-powered gallery?), so you have to scroll down to see the content? How it can be fixed?

Comments

frjo’s picture

Does the problem disappear if you have only the second set of links on a page?

If it does not, I would suspect that the Google doc viewer has something to do with the jumping of the Colorbox.

milos.kroulik’s picture

I tried it and the problem is still there. But the cause of the problem doesn't seem to be Google Doc Viewer. I changed it to "http://google.com" and it's still the same. You can look at the page again and try it for yourself.

milos.kroulik’s picture

Title: 2 Colorbox-powered links on the same page -> strange "jump" when opening the second » Colorbox link in Iframe -> strange "jump" when opening

changed the title accordingly.

frjo’s picture

For me the Colorbox on your page now opens as they should with no "jumping". I tested with Safari and Firefox on Mac OS X.

So it seems that linking to a normal web page, like google.com, works well.

milos.kroulik’s picture

That's strange. I created short screencasts, demonstrating this error in Firefox 3.6.6 and IE 8 on Win XP. You can find it at http://drop.io/colorboxjumperror. Both videos should be downloadable, if needed.

milos.kroulik’s picture

Is there anything else I should try?

frjo’s picture

I have tried to add the same Google link on a local dev site and there I have no jumping problem.

I'm pretty sure you have some other stuff on your site that is interfering with Colorbox.

kmadel’s picture

I have the same issue here: www.captechconsulting.com/resources/videos

If you click on a video at the bottom of the page, you see the described behavior.

milos.kroulik’s picture

Can you, please, enclose videos comparable to mine posted above? Just to be sure, that we are both talking about the same issue. Thanks.

frjo’s picture

Version: 6.x-1.0-beta5 » 6.x-1.x-dev
Assigned: Unassigned » frjo
Category: support » bug
Status: Active » Fixed

I found the answer in the Colorbox Google group, http://groups.google.com/group/colorbox/browse_thread/thread/d36607b2e99...

Turn out the "$('input:first').focus()" part at the end of colorbox_load.js is causing the jumping for IFRAME content.

For noe I have committed fixes to 6-dev and 7-dev that simple removes this code from colorbox_load.js.

Please try it out and report back here.

kmadel’s picture

Seems to work for me.

milos.kroulik’s picture

Yeah, it seems to be fixed! Thanks.

hanoii’s picture

Subscribed. On my site, I had only one colorbox and it was scrolling to the end of the page (and leaving the colorbox right on top) instead of the center.

The -dev version fixed that.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.