Page 1 of 1

Wordpress: Responsive window width and height

Posted: Tue Jul 04, 2017 12:55 pm
by VArdiyani
Hello,

We used the wordpress plugin to embed ggpkg files as shortcode and had the width set at 100% and width at 576 in GGPKG Import Settings player view, resulting in a landscape view, which is correct.

However, when the it goes down to mobile sizes it becomes portrait, due to the fixed height - which isn't what we want . We would like to dynamically set the height when it goes to mobile view so the aspect ratio remains at landscape - how do we achieve that?

Thank you all so much!

Re: Wordpress: Responsive window width and height

Posted: Tue Jul 04, 2017 4:54 pm
by Hopki
Hi,
Normally the height is handled by the responsive theme.
Other than this we do not change the height of the player.
Regards,
Hopki

Re: Wordpress: Responsive window width and height

Posted: Wed Jul 05, 2017 3:15 am
by VArdiyani
Hi, because we have a custom developed theme and since we are trying to handle the shortcode generated by the plugin , should the developers use javascript to affect the actual html, CSS codes generated by the gnome shortcode as the browser size change?

Since in a responsive theme, we either handle it with CSS or Javascript, but they have to be aware of what element to handle - is this how it is supposed to be done?

Re: Wordpress: Responsive window width and height

Posted: Thu Jul 06, 2017 12:17 pm
by thomas
The player always follow the top "container" div, so you can change the size with either CSS or Javascript and the panorama should follow. You can just leave out the width/height values in the plugin and control everything yourself.