diff options
Diffstat (limited to 'doc/dw-grows.doc')
-rw-r--r-- | doc/dw-grows.doc | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/doc/dw-grows.doc b/doc/dw-grows.doc index 15150338..0d123d61 100644 --- a/doc/dw-grows.doc +++ b/doc/dw-grows.doc @@ -89,6 +89,24 @@ The rules for the calculation: <b>Notice:</b> Currently, dw::core::Widget::getExtremesImpl must set all four members in dw::core::Extremes; this may change.</div> +Another **extension of extremes: *adjustmentWidth*.** This is used as +minimum for the width, when "adjust_min_width" (or, +"adjust_table_min_width", respectively) is set. + +The rules for the calculation: + +1. If a widget has no children, it can choose a suitable value, + typically based on dw::core::Extremes::minWidth and + dw::core::Extremes::minWidthIntrinsic. +2. A widget must calculate *adjustmentWidth* from *adjustmentWidth* of + its children. + +*Note:* An implementation of dw::core::Widget::getExtremesImpl may set +this value *after* calling dw::core::Widget::correctExtremesOfChild, +so that it cannot be used for the correction of extremes. In this case +*useAdjustmentWidth = false* should be passed to +dw::core::Widget::correctExtremesOfChild. On the other hand, if known +before, *useAdjustmentWidth* should be set to *true*. Rules for *new* methods related to resizing =========================================== |