CenterContainer: Use an elseif instead of two ifs checking the same

variable
This commit is contained in:
NiLuJe
2022-12-26 19:26:22 +01:00
parent 78a21a0ecc
commit d6ec148548

View File

@@ -14,8 +14,7 @@ function CenterContainer:paintTo(bb, x, y)
if self.dimen.h < content_size.h then
self.ignore = "height"
end
end
if self.ignore_if_over == "width" then -- align left borders
elseif self.ignore_if_over == "width" then -- align left borders
if self.dimen.w < content_size.w then
self.ignore = "width"
end