Browse Source

Move transition/animation update to before style definition update.

Michael Ragazzon 6 years ago
parent
commit
27f54e5bff
1 changed files with 3 additions and 3 deletions
  1. 3 3
      Source/Core/Element.cpp

+ 3 - 3
Source/Core/Element.cpp

@@ -214,13 +214,13 @@ void Element::Update(float dp_ratio)
 
 
 	UpdateStructure();
 	UpdateStructure();
 
 
-	style->UpdateDefinition();
-	scroll->Update();
-
 	UpdateTransition();
 	UpdateTransition();
 	UpdateAnimation();
 	UpdateAnimation();
 	AdvanceAnimations();
 	AdvanceAnimations();
 
 
+	style->UpdateDefinition();
+	scroll->Update();
+
 	if(style->AnyPropertiesDirty())
 	if(style->AnyPropertiesDirty())
 	{
 	{
 		const ComputedValues* parent_values = nullptr;
 		const ComputedValues* parent_values = nullptr;