From 4ef3d2ff9f9cccc3814d4cf98921899f6640a2a4 Mon Sep 17 00:00:00 2001 From: John Preston Date: Fri, 11 Oct 2019 19:59:39 +0400 Subject: [PATCH] Fix label crossfade animation. --- ui/widgets/labels.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/widgets/labels.cpp b/ui/widgets/labels.cpp index 8b21153..2e01081 100644 --- a/ui/widgets/labels.cpp +++ b/ui/widgets/labels.cpp @@ -740,7 +740,7 @@ CrossFadeAnimation::Data FlatLabel::crossFadeData( result.lineAddTop = addedHeight / 2; result.lineHeight += addedHeight; } - result.position = pos(); + result.position = basePosition + pos(); result.align = _st.align; result.font = _st.style.font; result.margin = _st.margin;