Skip to content

Commit 12d8b25

Browse files
author
Margaret Matocha
committed
updated setter for anchor_point so that x,y are updated upon change to anchor_point
1 parent 995f3de commit 12d8b25

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

adafruit_display_text/label.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,9 @@ def anchor_point(self):
252252

253253
@anchor_point.setter
254254
def anchor_point(self, new_anchor_point):
255+
current_anchored_position = self.anchored_position
255256
self._anchor_point = new_anchor_point
257+
self.anchored_position = current_anchored_position
256258

257259
@property
258260
def anchored_position(self):

0 commit comments

Comments
 (0)