Dolda2000 GitWeb
/
automanga.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dcaf33f
)
Fixed pan bug when reallocating pageview.
author
Fredrik Tolf
<fredrik@dolda2000.com>
Fri, 19 Jul 2013 07:13:06 +0000
(09:13 +0200)
committer
Fredrik Tolf
<fredrik@dolda2000.com>
Fri, 19 Jul 2013 07:13:06 +0000
(09:13 +0200)
manga/reader.py
patch
|
blob
|
blame
|
history
diff --git
a/manga/reader.py
b/manga/reader.py
index
b753042
..
075d846
100644
(file)
--- a/
manga/reader.py
+++ b/
manga/reader.py
@@
-213,6
+213,15
@@
class pageview(gtk.Widget):
self.allocation = alloc
if self.fit:
self.zoom = self.fitzoom()
+ else:
+ aw, ah = self.get_asize()
+ zw, zh = self.get_zsize()
+ ox, oy = self.off
+ if zw >= aw and ox + aw > zw:
+ ox = zw - aw
+ if zh >= ah and oy + ah > zh:
+ oy = zh - ah
+ self.off = ox, oy
if self.flags() & gtk.REALIZED:
self.window.move_resize(*alloc)