Fix padding offset calculation

This commit is contained in:
Gabriel Tofvesson 2024-10-04 13:27:07 +02:00
parent 66b2030cbe
commit 18a4d8efb9

View File

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