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);