Skip to content

Commit

Permalink
Parse vertical alignment in Rockmeter with the correct function.
Browse files Browse the repository at this point in the history
  • Loading branch information
stump committed Apr 4, 2011
1 parent 2087f79 commit f62ed17
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Rockmeter.py
Expand Up @@ -38,7 +38,7 @@

import math

from Theme import halign
from Theme import halign, valign
from constants import *

#these are the variables for setting the alignment of text and images
Expand Down Expand Up @@ -128,7 +128,7 @@ def __init__(self, stage, section):
self.condition = True #when should the image be shown (by default it will always be shown)
self.alignment = halign(self.get("alignment", str, "center"))
#alignment of the image (horizontal)
self.valignment = halign(self.get("valignment", str, "center"))
self.valignment = valign(self.get("valignment", str, "middle"))
#alignment of the image (vertical)
self.inPixels = self.get("inPixels", str, "").split("|")
#makes sure to properly scale/position the images in pixels instead of percent
Expand Down

0 comments on commit f62ed17

Please sign in to comment.