Dolda2000 GitWeb
/
automanga.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added library for raw.senmanga.com.
[automanga.git]
/
manga
/
reader.py
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()
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)
if self.flags() & gtk.REALIZED:
self.window.move_resize(*alloc)