condition bug fix

This commit is contained in:
王劲鹏 2021-04-27 09:52:53 +08:00 committed by osborn
parent c79362188a
commit 6e780c35ad

View File

@ -492,9 +492,9 @@ void DoricLayouts::setFrame() {
<< " measuredX: " << this->measuredX << " measuredX: " << this->measuredX
<< " measuredY: " << this->measuredY; << " measuredY: " << this->measuredY;
if (qAbs(this->measuredWidth - this->view->width() >= 0.00001f)) if (qAbs(this->measuredWidth - this->view->width()) >= 0.00001f)
this->view->setProperty("width", this->measuredWidth); this->view->setProperty("width", this->measuredWidth);
if (qAbs(this->measuredHeight - this->view->height() >= 0.00001f)) if (qAbs(this->measuredHeight - this->view->height()) >= 0.00001f)
this->view->setProperty("height", this->measuredHeight); this->view->setProperty("height", this->measuredHeight);
this->view->setProperty("x", this->measuredX); this->view->setProperty("x", this->measuredX);