#include "wx/defs.h"
-#if wxUSE_CONSTRAINTS
-
#ifndef WX_PRECOMP
#include "wx/window.h"
#include "wx/utils.h"
GetChildren().DeleteObject(child);
}
-void wxSizer::SetSize(int x, int y, int w, int h, int WXUNUSED(flags))
+void wxSizer::DoSetSize(int x, int y, int w, int h, int WXUNUSED(flags))
{
wxLayoutConstraints *constr = GetConstraints();
if (x != -1)
// Find the bounding box and set own size
int maxX = 0;
int maxY = 0;
+
wxNode *node = GetChildren().First();
while (node)
{
maxX = (x + width);
if ((y+height) > maxY)
maxY = (y + height);
+
node = node->Next();
}
SetSize(GetBorderX(), GetBorderY(), maxX, maxY);
-
+
// If this is the only sizer for the parent, size the parent to this sizer.
if ( m_sizerParent && (m_sizerParent->GetSizer() == this) )
m_sizerParent->SetClientSize(maxX + 2*GetBorderX(), maxY + 2*GetBorderY());
{
}
-void wxRowColSizer::SetSize(int x, int y, int w, int h, int flags)
-{
- wxSizer::SetSize(x, y, w, h, flags);
-}
-
bool wxRowColSizer::LayoutPhase1(int *noChanges)
{
*noChanges = 0;
int currentY = borderY;
int maxX = currentX;
int maxY = currentY;
-
+
wxNode *node = GetChildren().First();
while (node)
{
{
}
-
-
-#endif