Skip to content
This repository has been archived by the owner on Jun 2, 2023. It is now read-only.

Fullscreen problem #117

Closed
3dfiction opened this issue Jan 9, 2018 · 5 comments
Closed

Fullscreen problem #117

3dfiction opened this issue Jan 9, 2018 · 5 comments
Labels
Stale Stale - Subject to be deleted

Comments

@3dfiction
Copy link

when i press fullscreen button my all html elements gone. like my logo etc. any solution for this ?
my sample page is http://3dfiction.com/pa63.htm
thanks in advance.

@sonic40
Copy link

sonic40 commented Nov 19, 2018

You can put all your html elements into "container" element of panolens, like this :

<div id="container">
<div id="progress"></div>

.... your html element here ....
.... your html element here ....
.... your html element here ....
.... your html element here ....

</div>

Don't forget to change style position of your html elements into "absolute" or "fixed", just to make it "transparent" over your panolens image.

Cheers,
Sonic40

@Ferdric-AVPL
Copy link

Ferdric-AVPL commented May 19, 2020

Hi there.

I followed the workaround below (Thank you, @sonic40):

You can put all your html elements into "container" element of panolens, like this :

<div id="container">
<div id="progress"></div>

.... your html element here ....
.... your html element here ....
.... your html element here ....
.... your html element here ....

</div>

Don't forget to change style position of your html elements into "absolute" or "fixed", just to make it "transparent" over your panolens image.

However, my buttons are no longer functional, especially when I tested it on a mobile phone, specifically a Samsung Galaxy Note 9.

You can check my source code here: https://codepen.io/ferdric-avpl/pen/oNjQOYK

Your help is much appreciated. Thank you very much.

@dustinkerstein
Copy link

dustinkerstein commented May 19, 2020

I also ran into that issue with touch events. I worked around it by using Panolens' widget.createCustomItem like this:

var tourToggleButton = viewer.widget.createCustomItem({onTap: function() {toggleTour()}, style: {'color': 'white', 'background-color': 'transparent', 'border': 'none', 'position': 'absolute', 'bottom': '0px', 'left': '0px', 'outline': 'none', 'filter': 'none', 'height': '42px', 'width': '42px', 'display': 'inline-grid', 'align-items': 'center', 'background-size': '100%'}});
document.getElementById("container").appendChild(tourToggleButton);

@Ferdric-AVPL
Copy link

Ferdric-AVPL commented May 20, 2020

I also ran into that issue with touch events. I worked around it by using Panolens' widget.createCustomItem like this:

var tourToggleButton = viewer.widget.createCustomItem({onTap: function() {toggleTour()}, style: {'color': 'white', 'background-color': 'transparent', 'border': 'none', 'position': 'absolute', 'bottom': '0px', 'left': '0px', 'outline': 'none', 'filter': 'none', 'height': '42px', 'width': '42px', 'display': 'inline-grid', 'align-items': 'center', 'background-size': '100%'}});
document.getElementById("container").appendChild(tourToggleButton);

Hi, @dustinkerstein, and thank you for your prompt response! I followed your workaround and it did work for my button.

However, the buttons inside the "tour panel" still do not work. Must I do the same for them?

Is it also possible to place the tourToggleButton on the top-left corner of the screen?

Here is my source code, after following your workaround: https://codepen.io/ferdric-avpl/pen/MWaZpNz

Thank you very much.

@dustinkerstein
Copy link

See my note on the other issue.

@flyandi flyandi added the Stale Stale - Subject to be deleted label Feb 18, 2021
@flyandi flyandi closed this as completed Mar 21, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Stale Stale - Subject to be deleted
Projects
None yet
Development

No branches or pull requests

5 participants