remove init set x

This commit is contained in:
王劲鹏 2021-04-21 11:16:31 +08:00 committed by osborn
parent efe89e54c5
commit 398fef351c

View File

@ -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) {