change width & height to correct value

This commit is contained in:
王劲鹏 2021-04-26 10:24:02 +08:00 committed by osborn
parent c74ae5a189
commit f012d835dd

View File

@ -53,8 +53,8 @@ void DoricImageNode::onReady() {
QVariantList args;
QMap<QString, QVariant> 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);