16 lines
554 B
Plaintext
16 lines
554 B
Plaintext
on.resize = function(w, h)
|
|
_, _, Safe_width, Safe_height = love.window.getSafeArea()
|
|
for _,pane in ipairs(Panes) do
|
|
pane.editor_state.right = editor_right_margin()
|
|
if pane.editor_state.right < pane.editor_state.left then
|
|
pane.editor_state.right = pane.editor_state.left+1
|
|
end
|
|
pane.editor_state.width = pane.editor_state.right - pane.editor_state.left
|
|
pane.editor_state.bottom = code_editor_bottom_margin()
|
|
Text.redraw_all(pane.editor_state)
|
|
update_output_editor(pane)
|
|
end
|
|
if car.resize then
|
|
call_protected(car.resize, w,h)
|
|
end
|
|
end |