support ratio for terminals
This commit is contained in:
parent
0151c68abe
commit
42b1915065
|
@ -79,10 +79,12 @@ class ConfigJson(object):
|
||||||
if counter < (len(layoutjson) - 1):
|
if counter < (len(layoutjson) - 1):
|
||||||
containername = parent + "." + str(order) + "." + str(counter)
|
containername = parent + "." + str(order) + "." + str(counter)
|
||||||
ratio = (100 / (len(layoutjson) - counter)) / 100
|
ratio = (100 / (len(layoutjson) - counter)) / 100
|
||||||
|
if 'ratio' in pane:
|
||||||
|
ratio = pane['ratio']
|
||||||
children[containername] = {
|
children[containername] = {
|
||||||
'type': 'VPaned' if vertical else 'HPaned',
|
'type': 'VPaned' if vertical else 'HPaned',
|
||||||
'order': order + counter,
|
'order': order + counter,
|
||||||
'ratio': round(ratio, 2),
|
'ratio': ratio,
|
||||||
'parent': actualparent
|
'parent': actualparent
|
||||||
}
|
}
|
||||||
actualparent = containername
|
actualparent = containername
|
||||||
|
|
Loading…
Reference in New Issue