Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I did some testing and wasn't able to reproduce the problem. Have you tried testing the mobile debugging feature on jsfiddle?</p> <p>I put together the following simple example.</p> <p>HTML:</p> <pre><code>&lt;body&gt; &lt;div id="changeMe"&gt;Hello World&lt;/div&gt; &lt;/body&gt; </code></pre> <p>CSS:</p> <pre><code>.portrait { display: block !important; } .landscape { display: inline !important; } #changeMe { color: blue; } </code></pre> <p>Javascript:</p> <pre><code>$(document).ready(function() { $('body').on('orientationchange', function() { console.log('updated orientation: ' + window.orientation); if (window.orientation == 0) { // portrait mode $('#changeMe').removeClass('landscape').addClass('portrait').text('Portrait Mode'); } else { // landscape mode $('#changeMe').removeClass('portrait').addClass('landscape').text('Landscape Mode'); } }); });​ </code></pre> <p>Here is a link to the working jsfiddle: <a href="http://jsfiddle.net/gizmovation/9ALTU/" rel="nofollow">http://jsfiddle.net/gizmovation/9ALTU/</a></p> <p>When you use the mobile debugging feature (the little wifi looking icon next to the run button), you can open the page on your iphone while simultaneously debugging on your PC. When I did this, I was able to see that the block and inline styles were toggling properly on the #changeMe div. This should work regardless of whether the content was loaded via ajax.</p> <p>Hope this helps and that you are able to use the mobile debugger to resolve your issue.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. CO+1 for the jsFiddle Mobile tip... Here is the jsFiddle of the code actually not working... http://jsfiddle.net/Hupperware/43eK8/5/ Mobile view: http://jsfiddle.net/m/rat/ This works in Firefox (text turns red in "landscape" and blue in "portrait" just so you know it's working). In FF it will show inline and block as you go between a wider view and a narrow view... In Webkit (Safari and Chrome) it will not...
      singulars
    2. COI tried out your sample on my iphone and I didn't notice anything changing, but I think it must be due to another issue. It actually crashed my phone browser a couple times. Check this out: http://jsfiddle.net/gizmovation/tV8p4/ and mobile view: http://jsfiddle.net/m/mzw/. Try opening the mobile view on your phone and changing the orientation. The list items go from block to inline. This is the issue, right? I would assume if it works here that you can make yours work also. If you can break down your sample into something much smaller maybe I can offer further assistance.
      singulars
    3. COIt's the grid headings that is the issue under the Credit Card Txns collapsible. The heading Total Sales moves (just like it did in mine) and the color changes (also like mine) but the stats that are in blue should move up (.wrapStat) to be inline with the black stat and turn red... this isn't happening in either version. It's strictly the stats lines that aren't behaving in WebKit.
      singulars
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload