Fix padding offset calculation
This commit is contained in:
parent
66b2030cbe
commit
18a4d8efb9
@ -10,7 +10,7 @@ local Padding = Element:new{
|
|||||||
|
|
||||||
function Padding:new(opts)
|
function Padding:new(opts)
|
||||||
local obj = Element.new(self, 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{
|
obj:resize{
|
||||||
width = obj:getWidth(),
|
width = obj:getWidth(),
|
||||||
height = obj:getHeight()
|
height = obj:getHeight()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user