From 644f58e22110ac8b8c354641a44590ba9d28a350 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=8A=B2=E9=B9=8F?= Date: Fri, 23 Apr 2021 19:46:31 +0800 Subject: [PATCH] fix error constraint --- doric-Qt/doric/utils/DoricLayouts.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/doric-Qt/doric/utils/DoricLayouts.cpp b/doric-Qt/doric/utils/DoricLayouts.cpp index afdbefd5..4f03f1b8 100644 --- a/doric-Qt/doric/utils/DoricLayouts.cpp +++ b/doric-Qt/doric/utils/DoricLayouts.cpp @@ -236,12 +236,6 @@ void DoricLayouts::measureUndefinedContent(QSizeF targetSize) { } else { qreal actualWidth = this->view->width(); qreal actualHeight = this->view->height(); - if (actualWidth > targetSize.width()) { - actualWidth = targetSize.width(); - } - if (actualHeight > targetSize.height()) { - actualHeight = targetSize.height(); - } measuredSize = QSizeF(actualWidth, actualHeight); }