void GenericLayout::resize( int width, int height )
{
+ // check real resize
+ if( width == m_rect.getWidth() && height == m_rect.getHeight() )
+ return;
+
// Update the window size
m_rect = SkinsRect( 0, 0 , width, height );
{
iter->m_pControl->onResize();
}
-
- // Resize and refresh the associated window
- TopWindow *pWindow = getWindow();
- if( pWindow )
- {
- // Resize the window
- pWindow->resize( width, height );
- // Change the shape of the window and redraw it
- refreshAll();
- }
}
{
// first apply new shape to the window
pWindow->updateShape();
-
pWindow->invalidateRect( x, y, width, height );
}
}
// Do the actual resizing
rLayout.resize( newWidth, newHeight );
+ // Resize the window
+ TopWindow *pWindow = rLayout.getWindow();
+ pWindow->resize( newWidth, newHeight );
+
+ // refresh content
+ rLayout.refreshAll();
+
// Move all the anchored windows
WinSet_t::const_iterator it;
if( m_direction == kResizeE ||