tweaked the page position a bit

git-svn-id: http://comictagger.googlecode.com/svn/trunk@249 6c5673fe-1810-88d6-992b-cd32ca31540c
This commit is contained in:
beville@gmail.com 2012-12-11 17:59:02 +00:00
parent a5d39a88c8
commit 7289f6915a

View File

@ -206,8 +206,11 @@ class PageListEditor(QWidget):
new_h = self.frame.height() + delta_h
new_w = self.frame.width() + delta_w
new_h -= 2
new_w -= 2
frame_w = new_w
frame_h = new_h
new_h -= 4
new_w -= 4
if new_h < 0:
new_h = 0;
@ -222,7 +225,7 @@ class PageListEditor(QWidget):
img_w = scaled_pixmap.width()
img_h = scaled_pixmap.height()
self.label.resize( img_w, img_h )
self.label.move( (new_w - img_w)/2, (new_h - img_h)/2 )
self.label.move( (frame_w - img_w)/2, (frame_h - img_h)/2 )
def setData( self, comic_archive, pages_list ):