Skip to content

Commit 89d2be8

Browse files
committed
Make LRBT props on Text return floats
1 parent a33c32b commit 89d2be8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

arcade/text.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -443,28 +443,28 @@ def content_height(self) -> int:
443443
return self._label.content_height
444444

445445
@property
446-
def left(self) -> int:
446+
def left(self) -> float:
447447
"""
448448
Pixel location of the left content border.
449449
"""
450450
return self._label.left
451451

452452
@property
453-
def right(self) -> int:
453+
def right(self) -> float:
454454
"""
455455
Pixel location of the right content border.
456456
"""
457457
return self._label.right
458458

459459
@property
460-
def top(self) -> int:
460+
def top(self) -> float:
461461
"""
462462
Pixel location of the top content border.
463463
"""
464464
return self._label.top
465465

466466
@property
467-
def bottom(self) -> int:
467+
def bottom(self) -> float:
468468
"""
469469
Pixel location of the bottom content border.
470470
"""

0 commit comments

Comments
 (0)