Skip to content

Commit

Permalink
allow font sizes > 20 in browser (#492)
Browse files Browse the repository at this point in the history
  • Loading branch information
dae committed May 23, 2013
1 parent eb1793b commit d74338b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
10 changes: 9 additions & 1 deletion aqt/browser.py
Expand Up @@ -431,8 +431,16 @@ def setupMenus(self):
self.mw.maybeHideAccelerators(self)

def updateFont(self):
# we can't choose different line heights efficiently, so we need
# to pick a line height big enough for any card template
curmax = 16
for m in self.col.models.all():
for t in m['tmpls']:
bsize = t.get("bsize", 0)
if bsize > curmax:
curmax = bsize
self.form.tableView.verticalHeader().setDefaultSectionSize(
max(16, self.mw.fontHeight * 1.4))
curmax + 6)

def closeEvent(self, evt):
saveSplitter(self.form.splitter_2, "editor2")
Expand Down
3 changes: 0 additions & 3 deletions designer/browserdisp.ui
Expand Up @@ -58,9 +58,6 @@
<property name="minimum">
<number>6</number>
</property>
<property name="maximum">
<number>18</number>
</property>
</widget>
</item>
</layout>
Expand Down

0 comments on commit d74338b

Please sign in to comment.