We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents f5288fc + 5fe2117 commit 1dcecb9Copy full SHA for 1dcecb9
adafruit_display_text/label.py
@@ -82,8 +82,9 @@ def __init__(
82
if not max_glyphs and not text:
83
raise RuntimeError("Please provide a max size, or initial text")
84
if not max_glyphs:
85
- max_glyphs = len(text) + 1 # add one for the background bitmap tileGrid
86
- super().__init__(max_size=max_glyphs, **kwargs)
+ max_glyphs = len(text)
+ # add one to max_size for the background bitmap tileGrid
87
+ super().__init__(max_size=max_glyphs + 1, **kwargs)
88
89
self.width = max_glyphs
90
self._font = font
0 commit comments