mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
Refactored to use strictly locals
This commit is contained in:
14
frontend/ui/widget/verticalspan.lua
Normal file
14
frontend/ui/widget/verticalspan.lua
Normal file
@@ -0,0 +1,14 @@
|
||||
local Widget = require("ui/widget/widget")
|
||||
|
||||
--[[
|
||||
Dummy Widget that reserves vertical space
|
||||
--]]
|
||||
local VerticalSpan = Widget:new{
|
||||
width = 0,
|
||||
}
|
||||
|
||||
function VerticalSpan:getSize()
|
||||
return {w = 0, h = self.width}
|
||||
end
|
||||
|
||||
return VerticalSpan
|
||||
Reference in New Issue
Block a user