extract functions for computing editor dimensions
Dependencies
- [2]
AYHJOYKYbugfix: code overflowing lower border after resize - [3]
2PDO2EHRmerge bugfix - [4]
SFRZIHVEbugfix: update all panes on resize - [5]
FQAZKPOObugfix: infinite loop if window is too narrow - [6]
RK2ASPN7add lots of buttons to the toolbar - [7]
AZMYKWMHresolve conflicts - [8]
AQZ7YIX5resolve conflicts - [9]
YV2GBDNWpreserve settings across restart - [10]
VEAVIL4Xresize handler - [*]
R5QXEHUIsomebody stop me
Change contents
- file addition: 0171-code_editor_bottom_margin[12.2]
code_editor_bottom_margin = function()return Safe_height/2-Line_heightend - file addition: 0169-editor_right_margin[12.2]
editor_right_margin = function()return math.min(100+30*Font:getWidth('m'), Safe_width*2/3)end - replacement in 0070-code_editor_state at line 4
Safe_height/2-Line_height, -- bottomcode_editor_bottom_margin(), - replacement in 0070-code_editor_state at line 6
math.min(100+30*Font:getWidth('m'), Safe_width*2/3), -- righteditor_right_margin(), - replacement in 0070-code_editor_state at line 10
end[4.2865]end - replacement in 0031-on.resize at line 4
pane.editor_state.right = math.min(100+30*pane.editor_state.font:getWidth('m'), Safe_width*2/3)pane.editor_state.right = editor_right_margin() - replacement in 0031-on.resize at line 9
pane.editor_state.bottom = Safe_height/2-Line_heightpane.editor_state.bottom = code_editor_bottom_margin()