Skip to content

Commit 636860b

Browse files
authored
Fix width/height properties
1 parent 9d604e6 commit 636860b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

adafruit_display_text/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -428,12 +428,12 @@ def bounding_box(self) -> Tuple[int, int]:
428428
@property
429429
def height(self) -> int:
430430
"""The height of the label determined from the bounding box."""
431-
return self._bounding_box[3] - self._bounding_box[1]
431+
return self._bounding_box[3]
432432

433433
@property
434434
def width(self) -> int:
435435
"""The width of the label determined from the bounding box."""
436-
return self._bounding_box[2] - self._bounding_box[0]
436+
return self._bounding_box[2]
437437

438438
@property
439439
def line_spacing(self) -> float:

0 commit comments

Comments
 (0)