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,6 +131,7 @@ def buildHTML(path, imgfile):
|
|||||||
imgfilepv = string.join(imgfilepv, ".")
|
imgfilepv = string.join(imgfilepv, ".")
|
||||||
else:
|
else:
|
||||||
imgfilepv = imgfile
|
imgfilepv = imgfile
|
||||||
|
if "_kccx" in filename[0]:
|
||||||
xy = string.split(filename[0], "_kccx")[1]
|
xy = string.split(filename[0], "_kccx")[1]
|
||||||
x = string.split(xy, "_kccy")[0].lstrip("0")
|
x = string.split(xy, "_kccy")[0].lstrip("0")
|
||||||
y = string.split(xy, "_kccy")[1].lstrip("0")
|
y = string.split(xy, "_kccy")[1].lstrip("0")
|
||||||
@@ -142,6 +143,9 @@ def buildHTML(path, imgfile):
|
|||||||
y = "-" + str(float(y)/100) + "%"
|
y = "-" + str(float(y)/100) + "%"
|
||||||
else:
|
else:
|
||||||
y = "0%"
|
y = "0%"
|
||||||
|
else:
|
||||||
|
x = "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 + ";",
|
||||||
"BoxBL": "left:" + x + ";bottom:" + y + ";",
|
"BoxBL": "left:" + x + ";bottom:" + y + ";",
|
||||||
|
|||||||
Reference in New Issue
Block a user