Fix silly mistake when resolving merge conflict.

This commit is contained in:
Rodrigo Girão Serrão
2023-01-23 17:41:19 +00:00
parent 2deb96c3ed
commit 3305659132
2 changed files with 4 additions and 4 deletions

View File

@@ -220,9 +220,9 @@ class ScalarListProperty:
percent_unit: The dimension to which percentage scalars will be relative to.
"""
def __init__(self, children: bool = False, percent_unit: Unit) -> None:
self.children = children
def __init__(self, percent_unit: Unit, children: bool = False) -> None:
self.percent_unit = percent_unit
self.children = children
def __set_name__(self, owner: Styles, name: str) -> None:
self.name = name

View File

@@ -287,8 +287,8 @@ class StylesBase(ABC):
content_align_vertical = StringEnumProperty(VALID_ALIGN_VERTICAL, "top")
content_align = AlignProperty()
grid_rows = ScalarListProperty(children=True, percent_unit=Unit.HEIGHT)
grid_columns = ScalarListProperty(children=True, percent_unit=Unit.WIDTH)
grid_rows = ScalarListProperty(percent_unit=Unit.HEIGHT, children=True)
grid_columns = ScalarListProperty(percent_unit=Unit.WIDTH, children=True)
grid_size_columns = IntegerProperty(default=1, layout=True, children=True)
grid_size_rows = IntegerProperty(default=0, layout=True, children=True)