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/table.cc | |
parent | eb40226852118f6b24b594c307a6e12b369ceb04 (diff) |
GROWS: new options allowDecreaseWidth and allowDecreaseHeight for size correction.
Diffstat (limited to 'dw/table.cc')
-rw-r--r-- | dw/table.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/dw/table.cc b/dw/table.cc index 4c953e62..b16eedfc 100644 --- a/dw/table.cc +++ b/dw/table.cc @@ -121,7 +121,8 @@ void Table::sizeRequestSimpl (core::Requisition *requisition) boxDiffHeight () + cumHeight->get (numRows) + getStyle()->vBorderSpacing; requisition->descent = 0; - correctRequisition (requisition, core::splitHeightPreserveDescent); + correctRequisition (requisition, core::splitHeightPreserveDescent, true, + false); // For the order, see similar reasoning for dw::Textblock. correctRequisitionByOOF (requisition, core::splitHeightPreserveDescent); @@ -944,7 +945,8 @@ void Table::actuallyCalcCellSizes (bool calcHeights) // Even if 'width' is defined, it may not have a defined value. We try // this trick (should perhaps be replaced by a cleaner solution): core::Requisition testReq = { -1, -1, -1 }; - correctRequisition (&testReq, core::splitHeightPreserveDescent); + correctRequisition (&testReq, core::splitHeightPreserveDescent, true, + false); if (testReq.width != -1) totalWidthSpecified = true; } |