Commit ff74e967 authored by Jean-Paul Saman's avatar Jean-Paul Saman

skins2: resize new layout first when switching between layouts.

When switching layouts the windows was resized to the default state at design time.
Now the layout being switched to is first resized to the size of the current layout.
Switching layouts now nolonger results in the layout being restored to its default size,
instead it keeps the size the user inteded it to have.
parent 3444aef7
......@@ -358,6 +358,7 @@ void TopWindow::setActiveLayout( GenericLayout *pLayout )
// The current layout becomes inactive
m_pActiveLayout->getActiveVar().set( false );
pLayout->resize( m_pActiveLayout->getWidth(), m_pActiveLayout->getHeight() );
pLayout->setWindow( this );
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment