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()