From 18a4d8efb9701818820ad4d63d18ea9e4c0ada1a Mon Sep 17 00:00:00 2001 From: Gabriel Tofvesson Date: Fri, 4 Oct 2024 13:27:07 +0200 Subject: [PATCH] Fix padding offset calculation --- gfx/padding.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gfx/padding.lua b/gfx/padding.lua index 5b22752..a95c814 100644 --- a/gfx/padding.lua +++ b/gfx/padding.lua @@ -10,7 +10,7 @@ local Padding = Element:new{ function Padding:new(opts) local obj = Element.new(self, opts) - obj.element:setPos(obj:getPaddingLeft(), obj:getPaddingTop()) + obj.element:setPos(obj:getPaddingLeft() + 1, obj:getPaddingTop() + 1) obj:resize{ width = obj:getWidth(), height = obj:getHeight()