Skip to content

Commit

Permalink
Merge pull request #206 from SamantazFox/patch-1
Browse files Browse the repository at this point in the history
Fix width/height properties
  • Loading branch information
FoamyGuy authored Jun 10, 2024
2 parents 9d604e6 + 636860b commit 608833a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions adafruit_display_text/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 608833a

Please sign in to comment.