aboutsummaryrefslogtreecommitdiffstats
path: root/src/declarative/items/context2d/qsgcanvasitem.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/declarative/items/context2d/qsgcanvasitem.cpp')
-rw-r--r--src/declarative/items/context2d/qsgcanvasitem.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/declarative/items/context2d/qsgcanvasitem.cpp b/src/declarative/items/context2d/qsgcanvasitem.cpp
index deb3493ac1..43bb734a41 100644
--- a/src/declarative/items/context2d/qsgcanvasitem.cpp
+++ b/src/declarative/items/context2d/qsgcanvasitem.cpp
@@ -425,6 +425,7 @@ void QSGCanvasItem::componentComplete()
d->baseUrl = qmlEngine(this)->contextForObject(this)->baseUrl();
requestPaint();
updatePolish(); //force update the canvas sizes to texture for the first time
+ update();
d->componentCompleted = true;
}
@@ -453,6 +454,7 @@ QSGNode *QSGCanvasItem::updatePaintNode(QSGNode *oldNode, UpdatePaintNodeData *)
node = new QSGContext2DNode(this);
node->setTexture(d->texture);
+ node->setSize(d->canvasWindow.size());
node->update();
return node;
}