Thank you so much for this. I was having a horrible time with the Android mobile template for the free gantry Joomla! template available at
www.gantry-framework.org
.
Additional search text: Android portrait issue, android gantry portrait, android portrait (I used these and found nothing)
Today i was doing mobile optimization for android browser for a client when i discovered a problem. When you first open the browser or reload the page, the javascript function "orient()" in the index-android.php file is not called.
Because this function is not called, the css class is not added and the styling is bad. The way i solved it was to use Jquery's document.ready method and call the function.
This was the fix for sure!
Navigate to /libraries/gantry/tmpl/index-android.php
Add the following:
1) After the the opening head tag add:
<script type="text/javascript" src="
code.jquery.com/jquery-1.6.4.min.js
"></script>
2) Replace line 48 "window.addEvent('domready', function() {" with the following:
$(document).ready(function(){
all done!