fill3: Let portal contents be center aligned

This commit is contained in:
Andrew Hamilton 2022-05-26 14:38:37 +10:00
parent 0abca96868
commit e5c48a6128
2 changed files with 29 additions and 6 deletions

View file

@ -57,7 +57,7 @@ class WidgetTests(unittest.TestCase):
portal.position = (1, 0)
portal.limit_scroll((6, 1), (1, 1))
self.assertEqual(portal.position, (0, 0))
portal.is_left_aligned = False
portal.x_alignment = fill3.Alignment.right
portal.limit_scroll((6, 1), (1, 1))
self.assertEqual(portal.position, (-5, 0))