mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
CenterContainer: Use an elseif instead of two ifs checking the same
variable
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user