• Resolved cctvdave

    (@cctvdave)


    The plugin works perfectly on the desktop. But on my phone and tablet, when I switch the orientation, the appropriate image is not updated. Reloading the page at that point fixes the problem until you switch orientation again.

    Is this the normal behavior of the plugin, or am I configuring something incorrectly?

    https://wordpress.org/plugins/pb-responsive-images/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Jacob Dunn

    (@spacemanspud)

    I’d say take a look at what header tags you’re using for controlling scaling on the iPhone first, actually. If you’re using the same tags as the 2014 theme:

    <meta name="viewport" content="width=device-width">

    Then the actual width of the browser window never changes, it just scales to fit the width of the orientation. The following viewport tags is my preferred method:

    <meta name="viewport" content="initial-scale=1, maximum-scale=1">

    That will actually resize it correctly on rotate – which the polyfill this plugin uses should pick up on. If that doesn’t fix it, a URL to the site would help me determine the cause.

    Thread Starter cctvdave

    (@cctvdave)

    That was it! I deleted content=”width=device-width”

    Thanks, for the quick response, and the plug-in of course.

    Plugin Author Jacob Dunn

    (@spacemanspud)

    Awesome! Glad that helped.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘update on orientation change’ is closed to new replies.