fix(readerfooter): marker ticks initialization
This commit is contained in:
1 parent
6446f9d2b0
commit
f48d9bd6d9
4 files changed
+57
-29
No files matched your search
@@ -70,9 +70,8 @@ function ProgressWidget:paintTo(bb, x, y)
|
||||
my_size.h-2*(self.margin_v+self.bordersize), self.rectcolor)
|
||||
if self.ticks then
|
||||
for i=1, #self.ticks do
|
||||
local page = self.ticks[i]
|
||||
bb:paintRect(
|
||||
x + (my_size.w-2*self.margin_h)*(page/self.last),
|
||||
x + (my_size.w-2*self.margin_h)*(self.ticks[i]/self.last),
|
||||
y + self.margin_v + self.bordersize,
|
||||
self.tick_width,
|
||||
my_size.h-2*(self.margin_v+self.bordersize),
|
||||
|
||||
Reference in new issue
Block a user