Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-57206

Viewport meta tag not working in v5.8.0-beta1

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.9.4, 5.10.1
    • 5.8.0 Beta
    • WebEngine
    • None

    Description

      Passing --enable-viewport in 5.7 would also enable the viewport meta tag reading from the page to setup the layout and scaling constraints. This doesn't seem to work anymore in 5.8.

      `content::WebPreferences::viewport_meta_enabled` is now hardcoded to false unless `OS_ANDROID` is defined.

      I tested on desktop but I'm assuming that this is broken on embedded too, attached is an example patch that would fix it for me (unlicensed, public domain). I can't test on embedded with a touch screen easily at the moment.

      Attachments

        1. Fix_the_viewport_meta_tag.diff
          0.6 kB
          Jocelyn Turcotte
        2. viewport-meta-tag.mp4
          9.17 MB
          Johannes Pointner
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            allan.jensen Allan Sandfeld Jensen
            jturcott Jocelyn Turcotte
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes