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

variable
reviewable/pr9966/r1
NiLuJe 1 year ago
parent 78a21a0ecc
commit d6ec148548

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

Loading…
Cancel
Save