Browse Source

Fix sorting components that are not *quite* aligned in helper.py.

tags/v2.0.0
Andrew Belt 4 years ago
parent
commit
f065d6224f
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      helper.py

+ 1
- 1
helper.py View File

@@ -329,7 +329,7 @@ def panel_to_components(tree):
components['widgets'].append(c)

# Sort components
top_left_sort = lambda w: (w['cy'], w['cx'])
top_left_sort = lambda w: w['cy'] + 0.01 * w['cx']
components['params'] = sorted(components['params'], key=top_left_sort)
components['inputs'] = sorted(components['inputs'], key=top_left_sort)
components['outputs'] = sorted(components['outputs'], key=top_left_sort)


Loading…
Cancel
Save