From 8fc91bbfd90c0ccafc842d94e2b3bd10b8889595 Mon Sep 17 00:00:00 2001 From: Sebastian Geerken Date: Sun, 4 Jan 2015 20:44:00 +0100 Subject: Added Extremes::adjustmentWidth; fixed Textblock::mustBeWidenedToAvailWidth. --- doc/dw-grows.doc | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'doc') 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: Notice: Currently, dw::core::Widget::getExtremesImpl must set all four members in dw::core::Extremes; this may change. +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 =========================================== -- cgit v1.2.3