aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorSebastian Geerken <devnull@localhost>2015-01-04 20:44:00 +0100
committerSebastian Geerken <devnull@localhost>2015-01-04 20:44:00 +0100
commit8fc91bbfd90c0ccafc842d94e2b3bd10b8889595 (patch)
treecf000926053fbf18c8654890a33bbcf87fb775b1 /doc
parenta9cd5ace07c664beb87b0b4fbcbff5a9c4213a86 (diff)
Added Extremes::adjustmentWidth; fixed Textblock::mustBeWidenedToAvailWidth.
Diffstat (limited to 'doc')
-rw-r--r--doc/dw-grows.doc16
1 files changed, 16 insertions, 0 deletions
diff --git a/doc/dw-grows.doc b/doc/dw-grows.doc
index 15150338..a8e182f0 100644
--- a/doc/dw-grows.doc
+++ b/doc/dw-grows.doc
@@ -89,6 +89,22 @@ 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
+typically sets this value after calling
+dw::core::Widget::correctExtremesOfChild, so that it cannot be used
+for the correction of extremes.
Rules for *new* methods related to resizing
===========================================