• Login
    • Search
    • Categories
    • Recent
    • Tags
    • Users
    • Groups
    • Rules
    • Help

    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

    Opera Mini
    1
    2
    1016
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • declpi
      declpi last edited by

      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!

      Reply Quote 0
        declpi 1 Reply Last reply
      • declpi
        declpi @declpi last edited by

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

        Reply Quote 0
          1 Reply Last reply
        • First post
          Last post

        Computer browsers

        • Opera for Windows
        • Opera for Mac
        • Opera for Linux
        • Opera beta version
        • Opera USB

        Mobile browsers

        • Opera for Android
        • Opera Mini
        • Opera Touch
        • Opera for basic phones

        • Add-ons
        • Opera account
        • Wallpapers
        • Opera Ads

        • Help & support
        • Opera blogs
        • Opera forums
        • Dev.Opera

        • Security
        • Privacy
        • Cookies Policy
        • EULA
        • Terms of Service

        • About Opera
        • Press info
        • Jobs
        • Investors
        • Become a partner
        • Contact us

        Follow Opera

        • Opera - Facebook
        • Opera - Twitter
        • Opera - YouTube
        • Opera - LinkedIn
        • Opera - Instagram

        © Opera Software 1995-2025