parameters: (self, size, vertical=True)
docstring: Resizes the element, whatever it is.
          
          A separator or line will be always aligned by width or height
          depending on orientation of the whole panel.
  
          :param `size`: the maximum size available for the :class:`FoldWindowItem`;
          :param `vertical`: ``True`` if the parent :class:`FoldPanelBar` is in vertical
           mode.
docstring_summary: Resizes the element, whatever it is.
          
          A separator or line will be always aligned by width or height
          depending on orientation of the whole panel.
docstring_tokens: Resizes the element whatever it is . A separator or line will be always aligned by width or height depending on orientation of the whole panel .
function: def ResizeItem(self, size, vertical=True):
          """
          Resizes the element, whatever it is.
          
          A separator or line will be always aligned by width or height
          depending on orientation of the whole panel.
  
          :param `size`: the maximum size available for the :class:`FoldWindowItem`;
          :param `vertical`: ``True`` if the parent :class:`FoldPanelBar` is in vertical
           mode.
          """
          
          if self._flags & FPB_ALIGN_WIDTH:
              # align by taking full width
              mySize = size - self._leftSpacing - self._rightSpacing
  
              if mySize < 0:
                  mySize = 10  # can't have negative width
  
              if self._type == "SEPARATOR":
                  self._lineLength = mySize
              else:
                  xsize = (vertical and [mySize] or [-1])[0]
                  ysize = (vertical and [-1] or [mySize])[0]
  
                  self._wnd.SetSize((xsize, ysize))
function_tokens: def ResizeItem ( self , size , vertical = True ) : if self . _flags & FPB_ALIGN_WIDTH : # align by taking full width mySize = size - self . _leftSpacing - self . _rightSpacing if mySize < 0 : mySize = 10 # can't have negative width if self . _type == "SEPARATOR" : self . _lineLength = mySize else : xsize = ( vertical and [ mySize ] or [ - 1 ] ) [ 0 ] ysize = ( vertical and [ - 1 ] or [ mySize ] ) [ 0 ] self . _wnd . SetSize ( ( xsize , ysize ) )