RESOLVED INVALID90129
[Qt] WebView width/height property behavior is not the same on Simulator/device
https://bugs.webkit.org/show_bug.cgi?id=90129
Summary [Qt] WebView width/height property behavior is not the same on Simulator/device
Damian Jansen
Reported 2012-06-27 19:40:49 PDT
The documentation of QML WebView says the following: "If the width and height of the item is not set, they will dynamically adjust to a size appropriate for the content." This seems to be the case on the Simulator, but not on device (tried with N950 and Symbian Belle). Consider the following application: import QtQuick 1.1 import QtWebKit 1.0 Rectangle { width: 360 height: 360 WebView { anchors.centerIn: parent url: "http://www.google.com" onLoadFinished: { console.log(width) console.log(preferredWidth) } } } On the simulator it outputs the following, showing that width property got automatically adjusted: 960 0 But when run on device, the output is 0 800
Attachments
Jocelyn Turcotte
Comment 1 2014-02-03 03:21:32 PST
=== Bulk closing of Qt bugs === If you believe that this bug report is still relevant for a non-Qt port of webkit.org, please re-open it and remove [Qt] from the summary. If you believe that this is still an important QtWebKit bug, please fill a new report at https://bugreports.qt-project.org and add a link to this issue. See http://qt-project.org/wiki/ReportingBugsInQt for additional guidelines.
Note You need to log in before you can comment on or make changes to this bug.