diff options
author | Sebastian Geerken <devnull@localhost> | 2014-07-25 21:59:19 +0200 |
---|---|---|
committer | Sebastian Geerken <devnull@localhost> | 2014-07-25 21:59:19 +0200 |
commit | 91212a1b4a13068c82a916e7e459cfd6d2e088ad (patch) | |
tree | 54ff9051e2c4d09c837a0a34ac619ff1a2c58c27 /dw/alignedtablecell.cc | |
parent | 76510c4de1d5737b057715e62b972fdd0c4335ed (diff) |
Correct too wide table contents.
Diffstat (limited to 'dw/alignedtablecell.cc')
-rw-r--r-- | dw/alignedtablecell.cc | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/dw/alignedtablecell.cc b/dw/alignedtablecell.cc index 5e4b9e24..394b89df 100644 --- a/dw/alignedtablecell.cc +++ b/dw/alignedtablecell.cc @@ -84,6 +84,39 @@ int AlignedTableCell::getAvailHeightOfChild (Widget *child, bool forceValue) return height; } +void AlignedTableCell::correctRequisitionOfChild (Widget *child, + core::Requisition + *requisition, + void (*splitHeightFun) (int, + int*, + int*)) +{ + DBG_OBJ_ENTER ("resize", 0, "AlignedTableCell/correctRequisitionOfChild", + "%p, %d * (%d + %d), ...", child, requisition->width, + requisition->ascent, requisition->descent); + + AlignedTextblock::correctRequisitionOfChild (child, requisition, + splitHeightFun); + tablecell::correctCorrectedRequisitionOfChild (this, child, requisition, + splitHeightFun); + + DBG_OBJ_LEAVE (); +} + +void AlignedTableCell::correctExtremesOfChild (Widget *child, + core::Extremes *extremes) +{ + DBG_OBJ_ENTER ("resize", 0, "AlignedTableCell/correctExtremesOfChild", + "%p, %d (%d) / %d (%d)", + child, extremes->minWidth, extremes->minWidthIntrinsic, + extremes->maxWidth, extremes->maxWidthIntrinsic); + + AlignedTextblock::correctExtremesOfChild (child, extremes); + tablecell::correctCorrectedExtremesOfChild (this, child, extremes); + + DBG_OBJ_LEAVE (); +} + int AlignedTableCell::applyPerWidth (int containerWidth, core::style::Length perWidth) { |