o
    h                     @   s    d Z ddlZdd Zdd ZdS )z5Decorators handling min- and max- widths and heights.    Nc                        t   fdd} |_|S )zADecorate a function setting used width, handling {min,max}-width.c                       | j | jf} | g|R  }| j| jkr&| j| _|\| _ | _ | g|R  }| j| jk r>| j| _|\| _ | _ | g|R  }|S N)margin_leftmargin_rightwidth	max_width	min_widthboxargscomputed_marginsresultfunction [/var/www/html/optinet_system/venv/lib/python3.10/site-packages/weasyprint/layout/min_max.pywrapper      z%handle_min_max_width.<locals>.wrapper	functoolswrapswithout_min_maxr   r   r   r   r   handle_min_max_width      r   c                    r   )zCDecorate a function setting used height, handling {min,max}-height.c                    r   r   )
margin_topmargin_bottomheight
max_height
min_heightr
   r   r   r   r      r   z&handle_min_max_height.<locals>.wrapperr   r   r   r   r   handle_min_max_height   r   r!   )__doc__r   r   r!   r   r   r   r   <module>   s    