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.
2 parents 84f1762 + 207b583 commit 5f85122Copy full SHA for 5f85122
adafruit_displayio_layout/widgets/widget.py
@@ -228,12 +228,12 @@ def _update_position(self):
228
"""
229
230
if (self._anchor_point is not None) and (self._anchored_position is not None):
231
- self.x = (
+ self.x = int(
232
self._anchored_position[0]
233
- int(self._anchor_point[0] * self._bounding_box[2])
234
- self._bounding_box[0]
235
)
236
- self.y = (
+ self.y = int(
237
self._anchored_position[1]
238
- int(self._anchor_point[1] * self._bounding_box[3])
239
- self._bounding_box[1]
0 commit comments