always show progress bar in flipping mode

tap on progress bar in flipping mode will goto corresponding page
This commit is contained in:
chrox
2013-12-17 22:42:25 +08:00
parent da317ed14a
commit 93866822d0
5 changed files with 46 additions and 17 deletions

View File

@@ -1,4 +1,5 @@
local Widget = require("ui/widget/widget")
local Geom = require("ui/geometry")
--[[
ProgressWidget shows a progress bar
@@ -22,6 +23,11 @@ end
function ProgressWidget:paintTo(bb, x, y)
local my_size = self:getSize()
self.dimen = Geom:new{
x = x, y = y,
w = my_size.w,
h = my_size.h
}
bb:paintRoundedRect(x, y, my_size.w, my_size.h, self.bgcolor, self.radius)
bb:paintBorder(x, y, my_size.w, my_size.h,
self.bordersize, self.bordercolor, self.radius)