Opera Mini Screen Size, DPR and Viewport Inaccuracies

  • Opera Mini for Android seem to have a major issue with the correct determination of the 'viewport-width' size.
    I have tested Opera Mini for over a year now, and whether on an SDK emulator or actual device, it's always incorrect.

    Here is a use case on a Fire HD Tablet (Amazon Kindle Fire HD 7" 4th Gen):

    The physical screen is 1280x800 1.5 DPR. Which at a Portrait Orientation should result in a layout Screen Size of 534 x 854 px.
    Hover Opera Mini for Android (both 8 and 9 beta) returns a viewport-width of 381px with a DPR of 2.1, screen.width of 381px and window.outerwidth of 800px.

    So the math 800/2.1 is correct, but where does it pull a docElem.clientWidth of 381px from the device data? I don't see how you get to that result.

  • Found the answer to this from @andreasbovens. I guess we have no choice to deal with Opera Mini doing its own thing.

  • I would really like you to fix that, it's very annoying.

  • I can't find the turn on and off image

Log in to reply
 

Looks like your connection to Opera forums was lost, please wait while we try to reconnect.