summaryrefslogtreecommitdiffstats
path: root/examples/declarative/webview/autosize.qml
diff options
context:
space:
mode:
Diffstat (limited to 'examples/declarative/webview/autosize.qml')
-rw-r--r--examples/declarative/webview/autosize.qml5
1 files changed, 3 insertions, 2 deletions
diff --git a/examples/declarative/webview/autosize.qml b/examples/declarative/webview/autosize.qml
index c4a502e..9632883 100644
--- a/examples/declarative/webview/autosize.qml
+++ b/examples/declarative/webview/autosize.qml
@@ -5,15 +5,16 @@ import org.webkit 1.0
// preferredWidth, and preferredHeight properties.
Rectangle {
id: rect
- color: "white"
width: 200
height: layout.height
+
Column {
id: layout
spacing: 2
WebView {
html: "No width defined."
- Rectangle { color: "#10000000"
+ Rectangle {
+ color: "#10000000"
anchors.fill: parent
}
}