Skip to content

Commit 627563b

Browse files
This is a fix for #113 .
It keeps the scale of this outer Label at 1 and passes any scale setting through to the local_group inside as described in the comments already in the __init__ method.
1 parent a08f833 commit 627563b

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

adafruit_display_text/label.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,6 @@ def __init__(
130130
self._padding_left = padding_left
131131
self._padding_right = padding_right
132132

133-
self._scale = scale
134-
135133
if text is not None:
136134
self._update_text(str(text))
137135
if (anchored_position is not None) and (anchor_point is not None):
@@ -389,12 +387,11 @@ def text(self, new_text):
389387
@property
390388
def scale(self):
391389
"""Set the scaling of the label, in integer values"""
392-
return self._scale
390+
return self.local_group.scale
393391

394392
@scale.setter
395393
def scale(self, new_scale):
396394
current_anchored_position = self.anchored_position
397-
self._scale = new_scale
398395
self.local_group.scale = new_scale
399396
self.anchored_position = current_anchored_position
400397

0 commit comments

Comments
 (0)