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); }