My definitions of margin and padding are opposite those of CSS. Margins are just inside the border of a pane, while padding is between panes.
Perhaps I should rename Gutter_width to a padding as well..
SYS77RM72TL7SLUQIJBN6D7DI5I6HSHCHXLPXREPADUNBBFM5TYAC
UHLZULXWCQBLNM5HPCLFGYSIAMWXPXHK6PZCVQHAUQQUF55M6GOAC
4BX4GJEWW7Z5LA4SJUXADYLAHOYFL4IBOYH4J4DJYRAVKKGGFHGQC
J3ER7DFO2TXYUMJAXZUFEHQNLFDNIXSYDTE7HEFGQ2RYB3A6RFPAC
OTIBCAUJ3KDQJLVDN3A536DLZGNRYMGJLORZVR3WLCGXGO6UGO6AC
BJ5X5O4ACBBJ56LRBBSTCW6IBQP4HAEOOOPNH3SKTA4F66YTOIDAC
X22MOJHFLXMZQJN4IP2HAXIIVD2ALPR4EO5V5YDYF6QPXS7ZNB6QC
2L5MEZV344TOZLVY3432RHJFIRVXFD6O3GWLL5O4CV66BGAFTURQC
LNUHQOGHIOFGJXNGA3DZLYEASLYYDGLN2I3EDZY5ANASQAHCG3YQC
y = y + Padding_vertical
if overlap(y, y + Cache[pane.id].height, Display_settings.y, Display_settings.y + App.screen.height) then
if overlap(y, y + Margin_above + Cache[pane.id].height + Margin_below, Display_settings.y, Display_settings.y + App.screen.height) then
love.graphics.rectangle('fill', State.left-Margin_left,State.top, State.width+Margin_left+Margin_right, State.bottom-State.top)
love.graphics.rectangle('fill', State.left-Margin_left,State.top-Margin_above, State.width+Margin_left+Margin_right, State.bottom-State.top+Margin_above+Margin_below)