make the tables even smaller to adjust for pre changes

This commit is contained in:
Damien Elmes 2008-12-23 19:48:09 +09:00
parent d0f6c41bba
commit 666331bc6c

View file

@ -122,12 +122,12 @@ class View(object):
# Question and answer # Question and answer
########################################################################## ##########################################################################
def center(self, str, height=45): def center(self, str, height=40):
if not self.main.config['splitQA']: if not self.main.config['splitQA']:
return str return str
return ''' return '''
<div style="display: table; height: %s%%; width:100%%; overflow: hidden;"> <div style="display: table; height: %s%%; width:100%%; overflow: hidden;">\
<div style="display: table-cell; vertical-align: middle;"> <div style="display: table-cell; vertical-align: middle;">\
<div style="">%s</div></div></div>''' % (height, str) <div style="">%s</div></div></div>''' % (height, str)
def drawQuestion(self, nosound=False): def drawQuestion(self, nosound=False):