def draw(self, context):
    layout = self.layout
    layout.use_property_split = True
    cloth = context.cloth.collision_settings
    md = context.cloth
    ob = context.object
    layout.active = (cloth.use_self_collision and cloth_panel_enabled(md))
    flow = layout.grid_flow(row_major=False, columns=0, even_columns=True, even_rows=False, align=True)
    col = flow.column()
    col.prop(cloth, 'self_friction', text='Friction')
    col = flow.column()
    col.prop(cloth, 'self_distance_min', slider=True, text='Distance')
    col = flow.column()
    col.prop(cloth, 'self_impulse_clamp')
    col = flow.column()
    col.prop_search(cloth, 'vertex_group_self_collisions', ob, 'vertex_groups', text='Vertex Group')
def draw(self, context):
    layout = self.layout
    layout.use_property_split = True
    cloth = context.cloth.collision_settings
    md = context.cloth
    ob = context.object
    layout.active = (cloth.use_self_collision and cloth_panel_enabled(md))
    flow = layout.grid_flow(row_major=False, columns=0, even_columns=True, even_rows=False, align=True)
    col = flow.column()
    col.prop(cloth, 'self_friction', text='Friction')
    col = flow.column()
    col.prop(cloth, 'self_distance_min', slider=True, text='Distance')
    col = flow.column()
    col.prop(cloth, 'self_impulse_clamp')
    col = flow.column()
    col.prop_search(cloth, 'vertex_group_self_collisions', ob, 'vertex_groups', text='Vertex Group')