X-Git-Url: http://dolda2000.com/gitweb/?a=blobdiff_plain;f=manga%2Freader.py;h=075d846e71bb8f8619e6c76239e1b024a7f7ef71;hb=5e98c1aa8cfadcb81cd9ebb61a1e6352c6e16e80;hp=b7530422cb38e40e459ced40485c86d3065153aa;hpb=dcaf33f5e6a46ce130995956e5b6eeafbe688bc3;p=automanga.git diff --git a/manga/reader.py b/manga/reader.py index b753042..075d846 100644 --- 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)