From e0161a99b657154091503b2bdd661bbf16380d7e Mon Sep 17 00:00:00 2001 From: grdddj Date: Fri, 12 May 2023 13:09:07 +0200 Subject: [PATCH] WIP - comment --- core/embed/rust/src/ui/geometry.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/embed/rust/src/ui/geometry.rs b/core/embed/rust/src/ui/geometry.rs index cc885cc0c..9a84ea8cd 100644 --- a/core/embed/rust/src/ui/geometry.rs +++ b/core/embed/rust/src/ui/geometry.rs @@ -416,7 +416,8 @@ impl Rect { /// Split `Rect` into left, center and right, given the center one's /// `width`. Center element is symmetric, left and right have the same - /// size. + /// size. In case left and right cannot be the same size, right is 1px + /// wider. pub const fn split_center(self, width: i16) -> (Self, Self, Self) { let left_right_width = (self.width() - width) / 2; let (left, center_right) = self.split_left(left_right_width);