Update - I found removing the following from the params dict changed
the list view from iframe pop-up window to a drop-down which worked
much better on the iphone.
layout:
google.translate.TranslateElement.InlineLayout.SIMPLE
This will work, however I prefer the look of the button previously as
it's more compact.
Is there anyway to have the compact look but have it still be a
dropdown and not a pop-up iframe?
Thanks
On Mar 12, 10:37 pm, Garrett Hyder wrote:
> Hello,
>
> Placing the embed on mobile I find the iframe pop-up with the
> languages is too wide for the mobile device.
>
> <div id="translate" class="align-right">
> <div id="google_translate_element"></div>
> <script>
> function googleTranslateElementInit() {
> new google.translate.TranslateElement({
> pageLanguage: 'en',
> gaTrack: true,
> gaId: 'UA-21245236-1',
> layout:
> google.translate.TranslateElement.InlineLayout.SIMPLE
> }, 'google_translate_element');
> }
> </script>
> <script src="//translate.google.com/translate_a/element.js?
> cb=googleTranslateElementInit"></script>
> </div>
> <div class="clear"></div>
>
> Is there a mobile friendly embed?
>
> Thank you
--
You received this message because you are subscribed to the Google Groups
"General" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-translate-general?hl=en.