From 636860be97eca40f2b3d03a96f50970640698e77 Mon Sep 17 00:00:00 2001 From: Samantaz Fox Date: Tue, 14 May 2024 19:15:13 +0000 Subject: [PATCH] Fix width/height properties --- adafruit_display_text/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/adafruit_display_text/__init__.py b/adafruit_display_text/__init__.py index be32a1e..270e25f 100755 --- a/adafruit_display_text/__init__.py +++ b/adafruit_display_text/__init__.py @@ -428,12 +428,12 @@ def bounding_box(self) -> Tuple[int, int]: @property def height(self) -> int: """The height of the label determined from the bounding box.""" - return self._bounding_box[3] - self._bounding_box[1] + return self._bounding_box[3] @property def width(self) -> int: """The width of the label determined from the bounding box.""" - return self._bounding_box[2] - self._bounding_box[0] + return self._bounding_box[2] @property def line_spacing(self) -> float: