Allow widgetResizeImpl to work with containers (by re-laying them out).
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5415 4a71c877-e1ca-e34f-864e-861f7616d084master
parent
20d7cc06be
commit
2dc1063859
|
@ -589,6 +589,12 @@ void widgetResizeImpl(widget *self, int w, int h)
|
|||
|
||||
// Set the needs redraw flag
|
||||
self->needsRedraw = true;
|
||||
|
||||
// If we have any children, we need to redo their layout
|
||||
if (vectorSize(self->children))
|
||||
{
|
||||
widgetDoLayout(self);
|
||||
}
|
||||
}
|
||||
|
||||
void widgetCompositeImpl(widget *self, cairo_t *comp)
|
||||
|
|
Loading…
Reference in New Issue