fill3: Let portal contents be center aligned
This commit is contained in:
parent
0abca96868
commit
e5c48a6128
2 changed files with 29 additions and 6 deletions
|
|
@ -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))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue