about summary refs log tree commit diff
diff options
context:
space:
mode:
authorPaweł Jastrzębski <[email protected]>2015-11-03 18:15:32 +0100
committerPaweł Jastrzębski <[email protected]>2015-11-03 18:15:32 +0100
commit21174338ffb1f2e60225fb4c3d1853a16928e20a (patch)
tree6b73313a8ec7a2ed58ca5aa8b433b9fd99a2cb42
parentWindows setup tweak (diff)
downloadkcc-21174338ffb1f2e60225fb4c3d1853a16928e20a.tar.gz
kcc-21174338ffb1f2e60225fb4c3d1853a16928e20a.tar.bz2
kcc-21174338ffb1f2e60225fb4c3d1853a16928e20a.zip
Fixed Panel View placement
-rwxr-xr-xkcc/comic2ebook.py19
1 files 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(["<div id=\"" + boxes[i] + "\">\n",
-                          "<a class=\"app-amzn-magnify\" data-app-amzn-magnify='{\"targetId\":\"" + boxes[i] +
+                          "<a style=\"display:inline-block;width:100%;height:100%;\" class=\"app-amzn-magnify\" "
+                          "data-app-amzn-magnify='{\"targetId\":\"" + boxes[i] +
                           "-P\", \"ordinal\":" + str(order[i]) + "}'></a>\n",
                           "</div>\n"])
+        f.write("</div>\n")
         for box in boxes:
             f.writelines(["<div class=\"PV-P\" id=\"" + box + "-P\" style=\"" + additionalStyle + "\">\n",
                           "<img style=\"" + boxStyles[box] + "\" src=\"", "../" * backref, "Images/", postfix,
                           imgfilepv, "\" width=\"" + str(size[0]) + "\" height=\"" + str(size[1]) + "\"/>\n",
                           "</div>\n"])
-        f.write("</div>\n")
     f.writelines(["</body>\n",
                   "</html>\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",