don't animate before being initially painted
This commit is contained in:
parent
045059b71d
commit
713c80c805
|
@ -143,7 +143,7 @@ void QskStackBox::setCurrentIndex( int index )
|
||||||
if ( animator )
|
if ( animator )
|
||||||
animator->stop();
|
animator->stop();
|
||||||
|
|
||||||
if ( window() && isVisible() && animator )
|
if ( window() && isVisible() && isInitiallyPainted() && animator )
|
||||||
{
|
{
|
||||||
// When being hidden, the geometry is not updated.
|
// When being hidden, the geometry is not updated.
|
||||||
// So we do it now.
|
// So we do it now.
|
||||||
|
|
Loading…
Reference in New Issue