bugfix: update all panes on resize
This commit is contained in:
parent
2e66d2f0fd
commit
17711663ee
|
@ -1,11 +1,13 @@
|
||||||
on.resize = function()
|
on.resize = function()
|
||||||
_, _, Safe_width, Safe_height = love.window.getSafeArea()
|
_, _, Safe_width, Safe_height = love.window.getSafeArea()
|
||||||
Current_pane.editor_state.right = math.min(100+30*App.width('m'), Safe_width*2/3)
|
for _,pane in ipairs(Panes) do
|
||||||
Current_pane.editor_state.width = Current_pane.editor_state.right - Current_pane.editor_state.left
|
pane.editor_state.right = math.min(100+30*App.width('m'), Safe_width*2/3)
|
||||||
Current_pane.editor_state.bottom = Safe_height/2-5
|
pane.editor_state.width = pane.editor_state.right - pane.editor_state.left
|
||||||
Text.redraw_all(Current_pane.editor_state)
|
pane.editor_state.bottom = Safe_height/2-5
|
||||||
Current_pane.output_editor_state.top = Current_pane.editor_state.bottom+5+10+5
|
Text.redraw_all(pane.editor_state)
|
||||||
Current_pane.output_editor_state.right = Current_pane.editor_state.right
|
pane.output_editor_state.top = pane.editor_state.bottom+5+10+5
|
||||||
Current_pane.output_editor_state.width = Current_pane.editor_state.width
|
pane.output_editor_state.right = pane.editor_state.right
|
||||||
Current_pane.output_editor_state.bottom = Safe_height - 5
|
pane.output_editor_state.width = pane.editor_state.width
|
||||||
|
pane.output_editor_state.bottom = Safe_height - 5
|
||||||
|
end
|
||||||
end
|
end
|
Loading…
Reference in New Issue