We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 0823112 + 3e45a36 commit 1f27ba7Copy full SHA for 1f27ba7
adafruit_display_text/bitmap_label.py
@@ -299,12 +299,20 @@ def _reset_text(
299
300
# Update bounding_box values. Note: To be consistent with label.py,
301
# this is the bounding box for the text only, not including the background.
302
- self._bounding_box = (
303
- self.tilegrid.x,
304
- self.tilegrid.y,
305
- box_x,
306
- tight_box_y,
307
- )
+ if label_direction == "UPR" or self._label_direction == "DWR":
+ self._bounding_box = (
+ self.tilegrid.x,
+ self.tilegrid.y,
+ tight_box_y,
+ box_x,
308
+ )
309
+ else:
310
311
312
313
314
315
316
317
if (
318
scale is not None
0 commit comments