diff options
author | Sebastian Geerken <devnull@localhost> | 2014-09-12 20:28:56 +0200 |
---|---|---|
committer | Sebastian Geerken <devnull@localhost> | 2014-09-12 20:28:56 +0200 |
commit | ae2d990af432ea56375936e5ec9872fe0503d61f (patch) | |
tree | 0b5bf1d9fbce4481ae3fc49b86b6362ae071a12f /dw/table.cc | |
parent | f9f3fcc4b5f72de36d6cb231baeaf21a3b615704 (diff) |
Table gets OOF aware, part 1. Warning: crashes!
Diffstat (limited to 'dw/table.cc')
-rw-r--r-- | dw/table.cc | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/dw/table.cc b/dw/table.cc index 746856c7..a59c0120 100644 --- a/dw/table.cc +++ b/dw/table.cc @@ -124,6 +124,9 @@ void Table::sizeRequestImpl (core::Requisition *requisition) correctRequisition (requisition, core::splitHeightPreserveDescent); + // For the order, see similar reasoning for dw::Textblock. + correctRequisitionByOOF (requisition); + DBG_OBJ_LEAVE (); } @@ -152,6 +155,9 @@ void Table::getExtremesImpl (core::Extremes *extremes) correctExtremes (extremes); + // For the order, see similar reasoning for dw::Textblock. + correctExtremesByOOF (extremes); + DBG_OBJ_LEAVE (); } @@ -161,6 +167,8 @@ void Table::sizeAllocateImpl (core::Allocation *allocation) allocation->x, allocation->y, allocation->width, allocation->ascent, allocation->descent); + sizeAllocateStart (allocation); + calcCellSizes (true); /** @@ -201,6 +209,8 @@ void Table::sizeAllocateImpl (core::Allocation *allocation) x += colWidths->get (col) + getStyle()->hBorderSpacing; } + sizeAllocateEnd (); + DBG_OBJ_LEAVE (); } @@ -306,6 +316,8 @@ void Table::containerSizeChangedForChildren () } } + containerSizeChangedForChildrenOOF (); + DBG_OBJ_LEAVE (); } @@ -371,6 +383,8 @@ void Table::draw (core::View *view, core::Rectangle *area) child->draw (view, &childArea); } } + + drawOOF (view, area); } void Table::removeChild (Widget *child) |