@@ -189,7 +189,8 @@ class UIBoxLayout(UILayout):
189
189
Or use :py:meth:`arcade.gui.UIBoxLayout.fit_content` to resize the layout. The
190
190
bottom-left corner is used as the default anchor point.
191
191
192
- Supports the options: ``size_hint``, ``size_hint_min``, ``size_hint_max``.
192
+ Supports the options: ``size_hint``, ``size_hint_min``, ``size_hint_max``. ``size_hint_min`` is automatically
193
+ updated based on the minimal required space by children.
193
194
194
195
If a child widget provides a ``size_hint`` for a dimension, the child will
195
196
be resized within the given range of ``size_hint_min`` and
@@ -208,7 +209,6 @@ class UIBoxLayout(UILayout):
208
209
:param size_hint: Size hint for the :py:class:`~arcade.gui.UILayout` if
209
210
the widget would like to grow. Defaults to ``0, 0`` ->
210
211
minimal size to contain children.
211
- :param size_hint_min: Minimum width and height in pixels.
212
212
:param size_hint_max: Maximum width and height in pixels.
213
213
:param space_between: Space in pixels between the children.
214
214
"""
@@ -223,7 +223,6 @@ def __init__(
223
223
align = "center" ,
224
224
children : Iterable [UIWidget ] = tuple (),
225
225
size_hint = (0 , 0 ),
226
- size_hint_min = None ,
227
226
size_hint_max = None ,
228
227
space_between = 0 ,
229
228
style = None ,
@@ -236,7 +235,6 @@ def __init__(
236
235
height = height ,
237
236
children = children ,
238
237
size_hint = size_hint ,
239
- size_hint_min = size_hint_min ,
240
238
size_hint_max = size_hint_max ,
241
239
style = style ,
242
240
** kwargs
@@ -472,7 +470,8 @@ class UIGridLayout(UILayout):
472
470
``size_hint_max``.
473
471
474
472
Children are resized based on ``size_hint``. Maximum and minimum
475
- ``size_hint``s only take effect if a ``size_hint`` is given.
473
+ ``size_hint``s only take effect if a ``size_hint`` is given. ``size_hint_min`` is automatically
474
+ updated based on the minimal required space by children.
476
475
477
476
:param x: ``x`` coordinate of bottom left corner.
478
477
:param y: ``y`` coordinate of bottom left corner.
@@ -485,7 +484,6 @@ class UIGridLayout(UILayout):
485
484
added later.
486
485
:param size_hint: A size hint for :py:class:`~arcade.gui.UILayout`, if the
487
486
:py:class:`~arcade.gui.UIWidget` would like to grow.
488
- :param size_hint_min: Minimum width and height in pixels.
489
487
:param size_hint_max: Maximum width and height in pixels.
490
488
:param horizontal_spacing: Space between columns.
491
489
:param vertical_spacing: Space between rows.
@@ -503,7 +501,6 @@ def __init__(
503
501
align_vertical = "center" ,
504
502
children : Iterable [UIWidget ] = tuple (),
505
503
size_hint = (0 , 0 ),
506
- size_hint_min = None ,
507
504
size_hint_max = None ,
508
505
horizontal_spacing : int = 0 ,
509
506
vertical_spacing : int = 0 ,
@@ -520,7 +517,6 @@ def __init__(
520
517
height = 0 ,
521
518
children = children ,
522
519
size_hint = size_hint ,
523
- size_hint_min = size_hint_min ,
524
520
size_hint_max = size_hint_max ,
525
521
style = style ,
526
522
** kwargs
0 commit comments