def draw(self, context):
    layout = self.layout
    layout.use_property_split = True
    md = context.cloth
    ob = context.object
    cloth = context.cloth.settings
    layout.active = cloth_panel_enabled(md)
    flow = layout.grid_flow(row_major=True, columns=0, even_columns=True, even_rows=False, align=True)
    col = flow.column()
    col.prop_search(cloth, 'vertex_group_structural_stiffness', ob, 'vertex_groups', text='Structural Group')
    col.prop(cloth, 'tension_stiffness_max', text='Max Tension')
    col.prop(cloth, 'compression_stiffness_max', text='Max Compression')
    col.separator()
    col = flow.column()
    col.prop_search(cloth, 'vertex_group_shear_stiffness', ob, 'vertex_groups', text='Shear Group')
    col.prop(cloth, 'shear_stiffness_max', text='Max Shearing')
    col.separator()
    col = flow.column()
    col.prop_search(cloth, 'vertex_group_bending', ob, 'vertex_groups', text='Bending Group')
    col.prop(cloth, 'bending_stiffness_max', text='Max Bending')
    col.separator()
    col = flow.column()
    col.prop_search(cloth, 'vertex_group_shrink', ob, 'vertex_groups', text='Shrinking Group')
    col.prop(cloth, 'shrink_max', text='Max Shrinking')
def draw(self, context):
    layout = self.layout
    layout.use_property_split = True
    md = context.cloth
    ob = context.object
    cloth = context.cloth.settings
    layout.active = cloth_panel_enabled(md)
    flow = layout.grid_flow(row_major=True, columns=0, even_columns=True, even_rows=False, align=True)
    col = flow.column()
    col.prop_search(cloth, 'vertex_group_structural_stiffness', ob, 'vertex_groups', text='Structural Group')
    col.prop(cloth, 'tension_stiffness_max', text='Max Tension')
    col.prop(cloth, 'compression_stiffness_max', text='Max Compression')
    col.separator()
    col = flow.column()
    col.prop_search(cloth, 'vertex_group_shear_stiffness', ob, 'vertex_groups', text='Shear Group')
    col.prop(cloth, 'shear_stiffness_max', text='Max Shearing')
    col.separator()
    col = flow.column()
    col.prop_search(cloth, 'vertex_group_bending', ob, 'vertex_groups', text='Bending Group')
    col.prop(cloth, 'bending_stiffness_max', text='Max Bending')
    col.separator()
    col = flow.column()
    col.prop_search(cloth, 'vertex_group_shrink', ob, 'vertex_groups', text='Shrinking Group')
    col.prop(cloth, 'shrink_max', text='Max Shrinking')