fix error constraint
This commit is contained in:
parent
0a29cc2876
commit
644f58e221
@ -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);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user