We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2caeb59 commit c9309daCopy full SHA for c9309da
adafruit_display_text/label.py
@@ -353,12 +353,10 @@ def anchored_position(self):
353
return (
354
int(
355
self.x
356
- + self._boundingbox[0]
357
+ self._anchor_point[0] * self._boundingbox[2]
358
),
359
360
self.y
361
- + self._boundingbox[1]
362
+ self._anchor_point[1] * self._boundingbox[3]
363
364
)
@@ -372,7 +370,6 @@ def anchored_position(self, new_position):
372
370
new_y = self.y = int(
373
371
new_position[1]
374
- self._anchor_point[1] * (self._boundingbox[3] * self._scale)
375
- + (self._boundingbox[3] * self._scale) / 2
376
377
self._boundingbox = (new_x, new_y, self._boundingbox[2], self._boundingbox[3])
378
self.x = new_x
0 commit comments