File tree 1 file changed +8
-1
lines changed
1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,6 @@ class Layout(Widget):
24
24
- ``flex-wrap`` and ``flex-direction`` are bound to ``flex-flow``.
25
25
- ``margin-[top/bottom/left/right]`` values are bound to ``margin``, etc.
26
26
"""
27
-
28
27
_view_name = Unicode ('LayoutView' ).tag (sync = True )
29
28
_view_module = Unicode ('@jupyter-widgets/base' ).tag (sync = True )
30
29
_view_module_version = Unicode (__jupyter_widgets_base_version__ ).tag (sync = True )
@@ -78,6 +77,14 @@ class Layout(Widget):
78
77
grid_column = Unicode (None , allow_none = True , help = "The grid-column CSS attribute." ).tag (sync = True )
79
78
grid_area = Unicode (None , allow_none = True , help = "The grid-area CSS attribute." ).tag (sync = True )
80
79
80
+ def __init__ (self , ** kwargs ):
81
+ if 'border' in kwargs :
82
+ border = kwargs .pop ('border' )
83
+ for side in ['top' , 'right' , 'bottom' , 'left' ]:
84
+ kwargs .setdefault (f'border_{ side } ' , border )
85
+
86
+ super ().__init__ (** kwargs )
87
+
81
88
def _get_border (self ):
82
89
"""
83
90
`border` property getter. Return the common value of all side
You can’t perform that action at this time.
0 commit comments