Skip to content

Commit 04339b9

Browse files
authored
Fix for background_tight property not working
1 parent 5353178 commit 04339b9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

adafruit_display_text/bitmap_label.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,10 @@ def _reset_text(
183183
if self._background_tight:
184184
box_y = tight_box_y
185185
y_offset = tight_y_offset
186+
self._padding_left = 0
187+
self._padding_right = 0
188+
self._padding_top = 0
189+
self._padding_bottom = 0
186190

187191
else: # calculate the box size for a loose background
188192
box_y = loose_box_y

0 commit comments

Comments
 (0)