From f012d835dda085966c07a6ea60304321bf8b9302 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=8A=B2=E9=B9=8F?= Date: Mon, 26 Apr 2021 10:24:02 +0800 Subject: [PATCH] change width & height to correct value --- doric-Qt/doric/shader/DoricImageNode.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doric-Qt/doric/shader/DoricImageNode.cpp b/doric-Qt/doric/shader/DoricImageNode.cpp index 1949304e..4bcdd3cd 100644 --- a/doric-Qt/doric/shader/DoricImageNode.cpp +++ b/doric-Qt/doric/shader/DoricImageNode.cpp @@ -53,8 +53,8 @@ void DoricImageNode::onReady() { QVariantList args; QMap map; - map.insert("width", 0); - map.insert("height", 0); + map.insert("width", mView->width()); + map.insert("height", mView->height()); args.append(QVariant::fromValue(map)); this->callJSResponse(this->loadCallbackId, args);