From 21174338ffb1f2e60225fb4c3d1853a16928e20a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Jastrz=C4=99bski?= Date: Tue, 3 Nov 2015 18:15:32 +0100 Subject: [PATCH] Fixed Panel View placement --- kcc/comic2ebook.py | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/kcc/comic2ebook.py b/kcc/comic2ebook.py index 69ea6b5..7ebde84 100755 --- a/kcc/comic2ebook.py +++ b/kcc/comic2ebook.py @@ -182,15 +182,16 @@ def buildHTML(path, imgfile, imgfilepath): boxes = [] for i in range(0, len(boxes)): f.writelines(["
\n", - "\n", "
\n"]) + f.write("\n") for box in boxes: f.writelines(["
\n", "\n", "
\n"]) - f.write("\n") f.writelines(["\n", "\n"]) f.close() @@ -393,6 +394,8 @@ def buildEPUB(path, chapterNames, tomeNumber): "position: absolute;\n", "width: 100%;\n", "height: 100%;\n", + "top: 0;\n", + "left: 0;\n", "}\n", "#PV-T {\n", "top: 0;\n", @@ -406,41 +409,41 @@ def buildEPUB(path, chapterNames, tomeNumber): "}\n", "#PV-L {\n", "left: 0;\n", - "width: 50%;\n", + "width: 49.5%;\n", "height: 100%;\n", "float: left;\n", "}\n", "#PV-R {\n", "right: 0;\n", - "width: 50%;\n", + "width: 49.5%;\n", "height: 100%;\n", "float: right;\n", "}\n", "#PV-TL {\n", "top: 0;\n", "left: 0;\n", - "width: 50%;\n", + "width: 49.5%;\n", "height: 50%;\n", "float: left;\n", "}\n", "#PV-TR {\n", "top: 0;\n", "right: 0;\n", - "width: 50%;\n", + "width: 49.5%;\n", "height: 50%;\n", "float: right;\n", "}\n", "#PV-BL {\n", "bottom: 0;\n", "left: 0;\n", - "width: 50%;\n", + "width: 49.5%;\n", "height: 50%;\n", "float: left;\n", "}\n", "#PV-BR {\n", "bottom: 0;\n", "right: 0;\n", - "width: 50%;\n", + "width: 49.5%;\n", "height: 50%;\n", "float: right;\n", "}\n",