fix error constraint

This commit is contained in:
王劲鹏 2021-04-23 19:46:31 +08:00 committed by osborn
parent 0a29cc2876
commit 644f58e221

View File

@ -236,12 +236,6 @@ void DoricLayouts::measureUndefinedContent(QSizeF targetSize) {
} else { } else {
qreal actualWidth = this->view->width(); qreal actualWidth = this->view->width();
qreal actualHeight = this->view->height(); qreal actualHeight = this->view->height();
if (actualWidth > targetSize.width()) {
actualWidth = targetSize.width();
}
if (actualHeight > targetSize.height()) {
actualHeight = targetSize.height();
}
measuredSize = QSizeF(actualWidth, actualHeight); measuredSize = QSizeF(actualWidth, actualHeight);
} }