Do more on the web, with a fast and secure browser!

Download Opera browser with:

  • built-in ad blocker
  • battery saver
  • free VPN
Download Opera

O-Mini calculates wrong window.innerHeight

  • OperaMini initially calculates the javascript window.innerHeight not as defined by the W3C:

    The innerHeight attribute must return the viewport height including the size of a rendered scroll bar (if any), or zero if there is no viewport. CSS Working Group

    OperaMini calculates the innerHeight at the beginning as it will be when the menu bars disappear after you start scrolling. This is not the expected value and does not match the definition. The menu bar is not "a rendered scroll bar" and should therefore not be included in the innerHeight value!

    Expected behaviour:

    • always calculate the innerHeight as defined
    • calculate at the beginning the innerHeight as defined above
    • recalculate the innerHeight while the menu bars disappear
    • launch 'resize' events while the menu bars disappear
    • do this the other way around when the menu bars are shown again

    Please fix this issue. Thanks!

  • Thank you for fixing this in the actual version!!!
    👍🏼 😊

Locked