mirror of
https://github.com/ciromattia/kcc
synced 2025-12-13 09:46:25 +00:00
Fixed Panel View generator bug (close #64)
This commit is contained in:
@@ -131,16 +131,20 @@ def buildHTML(path, imgfile):
|
|||||||
imgfilepv = string.join(imgfilepv, ".")
|
imgfilepv = string.join(imgfilepv, ".")
|
||||||
else:
|
else:
|
||||||
imgfilepv = imgfile
|
imgfilepv = imgfile
|
||||||
xy = string.split(filename[0], "_kccx")[1]
|
if "_kccx" in filename[0]:
|
||||||
x = string.split(xy, "_kccy")[0].lstrip("0")
|
xy = string.split(filename[0], "_kccx")[1]
|
||||||
y = string.split(xy, "_kccy")[1].lstrip("0")
|
x = string.split(xy, "_kccy")[0].lstrip("0")
|
||||||
if x != "":
|
y = string.split(xy, "_kccy")[1].lstrip("0")
|
||||||
x = "-" + str(float(x)/100) + "%"
|
if x != "":
|
||||||
|
x = "-" + str(float(x)/100) + "%"
|
||||||
|
else:
|
||||||
|
x = "0%"
|
||||||
|
if y != "":
|
||||||
|
y = "-" + str(float(y)/100) + "%"
|
||||||
|
else:
|
||||||
|
y = "0%"
|
||||||
else:
|
else:
|
||||||
x = "0%"
|
x = "0%"
|
||||||
if y != "":
|
|
||||||
y = "-" + str(float(y)/100) + "%"
|
|
||||||
else:
|
|
||||||
y = "0%"
|
y = "0%"
|
||||||
boxStyles = {"BoxTL": "left:" + x + ";top:" + y + ";",
|
boxStyles = {"BoxTL": "left:" + x + ";top:" + y + ";",
|
||||||
"BoxTR": "right:" + x + ";top:" + y + ";",
|
"BoxTR": "right:" + x + ";top:" + y + ";",
|
||||||
|
|||||||
Reference in New Issue
Block a user