- if (!page->m_client->HasVMT()) return;
-
-/*
- printf( "OnResize from " );
- if (page->m_client->GetClassInfo() && page->m_client->GetClassInfo()->GetClassName())
- printf( page->m_client->GetClassInfo()->GetClassName() );
- printf( ".\n" );
-
- printf( " New: X: %d Y: %d ", alloc->x, alloc->y );
- printf( " W: %d H: %d ", alloc->width, alloc->height );
- printf( " .\n" );
-*/
-
- page->m_client->SetSize( alloc->x, alloc->y+26,
- alloc->width, alloc->height );
-};
+ if (win->GetAutoLayout()) win->Layout();
+
+ if ((win->m_x == alloc->x) &&
+ (win->m_y == alloc->y) &&
+ (win->m_width == alloc->width) &&
+ (win->m_height == alloc->height))
+ {
+ return;
+ }
+
+ win->SetSize( alloc->x, alloc->y, alloc->width, alloc->height );
+}