From dd823097b41486a4bdf22102f69917bdb037fea9 Mon Sep 17 00:00:00 2001 From: tychovrahe Date: Thu, 25 Aug 2022 22:33:04 +0200 Subject: [PATCH] fix(core/rust): fix UI2 loader position [no changelog] --- core/embed/rust/src/ui/model_tt/component/loader.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/embed/rust/src/ui/model_tt/component/loader.rs b/core/embed/rust/src/ui/model_tt/component/loader.rs index 324d15549..fd57a4d50 100644 --- a/core/embed/rust/src/ui/model_tt/component/loader.rs +++ b/core/embed/rust/src/ui/model_tt/component/loader.rs @@ -119,7 +119,7 @@ impl Component for Loader { // Current loader API only takes Y-offset relative to screen center, which we // compute from the bounds center point. let screen_center = constant::screen().center(); - self.offset_y = screen_center.y - bounds.center().y; + self.offset_y = bounds.center().y - screen_center.y; Rect::from_center_and_size(screen_center + Offset::y(self.offset_y), Self::SIZE) }