summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRodrigo Arias Mallo <rodarima@gmail.com>2024-08-15 18:43:49 +0200
committerRodrigo Arias Mallo <rodarima@gmail.com>2024-10-17 20:38:16 +0200
commit931f8248c37468c2cbdc914f57b88a4599a2694a (patch)
treec051f2ec2815e49c05e8b9fddda928f216e98c0f
parentc11d213a1436d7d20b1e6805a509f7c3d2dd8f09 (diff)
Expand percentage height values for requisitions
When correcting a requisition, percent values were not being computed which prevents the min-height or max-height values to be taken into account.
-rw-r--r--dw/widget.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/dw/widget.cc b/dw/widget.cc
index 8824baeb..7d83081a 100644
--- a/dw/widget.cc
+++ b/dw/widget.cc
@@ -1899,17 +1899,17 @@ void Widget::correctReqHeightOfChild (Widget *child, Requisition *requisition,
requisition->ascent, requisition->descent,
misc::boolToStr (allowDecreaseHeight));
- int height = child->calcHeight (child->getStyle()->height, false, -1, this,
+ int height = child->calcHeight (child->getStyle()->height, true, -1, this,
false);
adjustHeight (&height, allowDecreaseHeight, requisition->ascent,
requisition->descent);
- int minHeight = child->calcHeight (child->getStyle()->minHeight, false, -1,
+ int minHeight = child->calcHeight (child->getStyle()->minHeight, true, -1,
this, false);
adjustHeight (&minHeight, allowDecreaseHeight, requisition->ascent,
requisition->descent);
- int maxHeight = child->calcHeight (child->getStyle()->maxHeight, false, -1,
+ int maxHeight = child->calcHeight (child->getStyle()->maxHeight, true, -1,
this, false);
adjustHeight (&maxHeight, allowDecreaseHeight, requisition->ascent,
requisition->descent);