diff --git a/frontend/ui/widget/checkmark.lua b/frontend/ui/widget/checkmark.lua index b2963a3b8..7e50eb4be 100644 --- a/frontend/ui/widget/checkmark.lua +++ b/frontend/ui/widget/checkmark.lua @@ -84,4 +84,13 @@ function CheckMark:init() self.dimen = unchecked_widget:getSize() end +function CheckMark:paintTo(bb, x, y) + -- NOTE: Account for alignment/offsets computation being tacked on to self.dimen... + -- This is dumb and probably means we're doing something wonky... somewhere, but it works, + -- and allows us to keep sensible coordinates in dimen, so that they can be used for hitbox checks. + WidgetContainer.paintTo(self, bb, x - self.dimen.x, y - self.dimen.y) + self.dimen.x = x + self.dimen.y = y +end + return CheckMark