diff options
author | Sebastian Geerken <devnull@localhost> | 2016-04-23 12:36:04 +0200 |
---|---|---|
committer | Sebastian Geerken <devnull@localhost> | 2016-04-23 12:36:04 +0200 |
commit | cd616fc93a5adb072d282f7afbdbe4b057f9d6fc (patch) | |
tree | 8073831411ce59ce6ca9dc430bb7506d0ba18467 /dw/simpletablecell.cc | |
parent | eb40226852118f6b24b594c307a6e12b369ceb04 (diff) |
GROWS: new options allowDecreaseWidth and allowDecreaseHeight for size correction.
Diffstat (limited to 'dw/simpletablecell.cc')
-rw-r--r-- | dw/simpletablecell.cc | 23 |
1 files changed, 16 insertions, 7 deletions
diff --git a/dw/simpletablecell.cc b/dw/simpletablecell.cc index 1466439b..a973ac30 100644 --- a/dw/simpletablecell.cc +++ b/dw/simpletablecell.cc @@ -21,9 +21,10 @@ #include "simpletablecell.hh" #include "tablecell.hh" -#include "../lout/misc.hh" #include "../lout/debug.hh" +using namespace lout; + namespace dw { int SimpleTableCell::CLASS_ID = -1; @@ -85,15 +86,23 @@ void SimpleTableCell::correctRequisitionOfChild (Widget *child, core::Requisition *requisition, void (*splitHeightFun) (int, int*, - int*)) + int*), + bool allowDecreaseWidth, + bool allowDecreaseHeight) { DBG_OBJ_ENTER ("resize", 0, "SimpleTableCell::correctRequisitionOfChild", - "%p, %d * (%d + %d), ...", child, requisition->width, - requisition->ascent, requisition->descent); - - Textblock::correctRequisitionOfChild (child, requisition, splitHeightFun); + "%p, %d * (%d + %d), ..., %s, %s", child, requisition->width, + requisition->ascent, requisition->descent, + misc::boolToStr (allowDecreaseWidth), + misc::boolToStr (allowDecreaseHeight)); + + Textblock::correctRequisitionOfChild (child, requisition, splitHeightFun, + allowDecreaseWidth, + allowDecreaseHeight); tablecell::correctCorrectedRequisitionOfChild (this, child, requisition, - splitHeightFun); + splitHeightFun, + allowDecreaseWidth, + allowDecreaseHeight); DBG_OBJ_LEAVE (); } |