def draw(self, context):
    layout = self.layout
    layout.use_property_split = True
    cloth = context.cloth.settings
    md = context.cloth
    ob = context.object
    layout.active = (cloth.use_internal_springs 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, 'internal_spring_max_length', text='Max Spring Creation Length')
    col = flow.column()
    col.prop(cloth, 'internal_spring_max_diversion', text='Max Creation Diversion')
    col = flow.column()
    col.prop(cloth, 'internal_spring_normal_check', text='Check Surface Normals')
    col = flow.column()
    col.prop(cloth, 'internal_tension_stiffness', text='Tension')
    col = flow.column()
    col.prop(cloth, 'internal_compression_stiffness', text='Compression')
    col = flow.column()
    col.prop_search(cloth, 'vertex_group_intern', ob, 'vertex_groups', text='Vertex Group')
    col = flow.column()
    col.prop(cloth, 'internal_tension_stiffness_max', text='Max Tension')
    col = flow.column()
    col.prop(cloth, 'internal_compression_stiffness_max', text='Max Compression')
def draw(self, context):
    layout = self.layout
    layout.use_property_split = True
    cloth = context.cloth.settings
    md = context.cloth
    ob = context.object
    layout.active = (cloth.use_internal_springs 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, 'internal_spring_max_length', text='Max Spring Creation Length')
    col = flow.column()
    col.prop(cloth, 'internal_spring_max_diversion', text='Max Creation Diversion')
    col = flow.column()
    col.prop(cloth, 'internal_spring_normal_check', text='Check Surface Normals')
    col = flow.column()
    col.prop(cloth, 'internal_tension_stiffness', text='Tension')
    col = flow.column()
    col.prop(cloth, 'internal_compression_stiffness', text='Compression')
    col = flow.column()
    col.prop_search(cloth, 'vertex_group_intern', ob, 'vertex_groups', text='Vertex Group')
    col = flow.column()
    col.prop(cloth, 'internal_tension_stiffness_max', text='Max Tension')
    col = flow.column()
    col.prop(cloth, 'internal_compression_stiffness_max', text='Max Compression')