From 398fef351cf09f9aec340856288c535baf9330a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=8A=B2=E9=B9=8F?= Date: Wed, 21 Apr 2021 11:16:31 +0800 Subject: [PATCH] remove init set x --- doric-Qt/doric/plugin/DoricModalPlugin.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/doric-Qt/doric/plugin/DoricModalPlugin.cpp b/doric-Qt/doric/plugin/DoricModalPlugin.cpp index 74262aad..88570707 100644 --- a/doric-Qt/doric/plugin/DoricModalPlugin.cpp +++ b/doric-Qt/doric/plugin/DoricModalPlugin.cpp @@ -31,8 +31,6 @@ void DoricModalPlugin::toast(QString jsValueString, QString callbackId) { item->childItems().at(0)->childItems().at(0)->setProperty("text", msg); - // init set x - item->setProperty("x", (rootObject->width() - item->width()) / 2.f); // init set y if ((gravity & DoricGravity::DoricGravityBottom) == DoricGravity::DoricGravityBottom) {