Add layout_init to the pane.
This fixes the problem with the widgets not sharing their widths according to the linked group rules. The code is used to experiment with a different approach of the implementation of a listbox.
This commit is contained in:
parent
9d440b00c3
commit
ccae9a5fd8
2 changed files with 14 additions and 0 deletions
|
@ -141,6 +141,17 @@ void tpane::place(const tpoint& origin, const tpoint& size)
|
|||
place_children();
|
||||
}
|
||||
|
||||
void tpane::layout_init(const bool full_initialization)
|
||||
{
|
||||
DBG_GUI_D << LOG_HEADER << '\n';
|
||||
|
||||
twidget::layout_init(full_initialization);
|
||||
|
||||
BOOST_FOREACH(titem& item, items_) {
|
||||
item.grid->layout_init(full_initialization);
|
||||
}
|
||||
}
|
||||
|
||||
void tpane::impl_draw_children(
|
||||
surface& frame_buffer
|
||||
, int x_offset
|
||||
|
|
|
@ -65,6 +65,9 @@ public:
|
|||
/** Inherited from twidget. */
|
||||
void place(const tpoint& origin, const tpoint& size);
|
||||
|
||||
/** Inherited from twidget. */
|
||||
void layout_init(const bool full_initialization);
|
||||
|
||||
/** Inherited from twidget. */
|
||||
void impl_draw_children(surface& frame_buffer, int x_offset, int y_offset);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue