You are not logged in.

Dear visitor, welcome to krpano.com Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

360boy

Intermediate

  • "360boy" started this thread

Posts: 221

Location: Mexico City

Occupation: Virtual tours, Krpano coding, Graphic Design, Photographer, Panographer

  • Send private message

1

Friday, February 22nd 2019, 5:03pm

Krpano div not centered at FB app!!

Hello there,

We've been recently facing this issue where a tour link loaded from FB app (and directed to it's own browser) is not centered on the navigation window, so a big part of the interface is hidden ruining the experience.

http://imagen360.com/krpano/riverlights.jpg

I remember seeing at this forum some javascript functionality to re-center the content area on browsing window first time that experience is loaded, any idea about this or an alternative solution?

Thank you!

Luis *thumbup*

2

Tuesday, February 26th 2019, 5:32pm

Hi,

that looks more like a (empty?) text-line was added in the html file before the pano div element...

and due the height=100% of the pano div element everything is moved down by that line...

Maybe the FB app is injecting some code that is causing that...?

Maybe try this as fix - use an absolute position for the pano div element:

Quoted

<div id="krpanoDIV" style="position:absolute;top:0;width:100%;height:100%;">


Best regards,
Klaus