[Webkit-unassigned] [Bug 90129] New: [Qt] WebView width/height property behavior is not the same on Simulator/device

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Jun 27 19:40:50 PDT 2012


https://bugs.webkit.org/show_bug.cgi?id=90129

           Summary: [Qt] WebView width/height property behavior is not the
                    same on Simulator/device
           Product: WebKit
           Version: 420+
          Platform: S60 Hardware
               URL: https://bugreports.qt-project.org/browse/QTBUG-22852
        OS/Version: All
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P3
         Component: New Bugs
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: damian.jansen at nokia.com


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

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list