|
|
|
|
@ -18,16 +18,16 @@ class Box(DOMWidget):
|
|
|
|
|
# Child widgets in the container.
|
|
|
|
|
# Using a tuple here to force reassignment to update the list.
|
|
|
|
|
# When a proper notifying-list trait exists, that is what should be used here.
|
|
|
|
|
children = Tuple(sync=True, allow_none=False)
|
|
|
|
|
children = Tuple(sync=True)
|
|
|
|
|
|
|
|
|
|
_overflow_values = ['visible', 'hidden', 'scroll', 'auto', 'initial', 'inherit', '']
|
|
|
|
|
overflow_x = CaselessStrEnum(
|
|
|
|
|
values=_overflow_values,
|
|
|
|
|
default_value='', allow_none=False, sync=True, help="""Specifies what
|
|
|
|
|
default_value='', sync=True, help="""Specifies what
|
|
|
|
|
happens to content that is too large for the rendered region.""")
|
|
|
|
|
overflow_y = CaselessStrEnum(
|
|
|
|
|
values=_overflow_values,
|
|
|
|
|
default_value='', allow_none=False, sync=True, help="""Specifies what
|
|
|
|
|
default_value='', sync=True, help="""Specifies what
|
|
|
|
|
happens to content that is too large for the rendered region.""")
|
|
|
|
|
|
|
|
|
|
box_style = CaselessStrEnum(
|
|
|
|
|
@ -59,10 +59,10 @@ class FlexBox(Box):
|
|
|
|
|
_locations = ['start', 'center', 'end', 'baseline', 'stretch']
|
|
|
|
|
pack = CaselessStrEnum(
|
|
|
|
|
values=_locations,
|
|
|
|
|
default_value='start', allow_none=False, sync=True)
|
|
|
|
|
default_value='start', sync=True)
|
|
|
|
|
align = CaselessStrEnum(
|
|
|
|
|
values=_locations,
|
|
|
|
|
default_value='start', allow_none=False, sync=True)
|
|
|
|
|
default_value='start', sync=True)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def VBox(*pargs, **kwargs):
|
|
|
|
|
|