mirror of
https://github.com/ankitects/anki.git
synced 2025-09-23 08:22:24 -04:00
fix width for darwin too
This commit is contained in:
parent
550546b79d
commit
5d634e08fc
1 changed files with 7 additions and 1 deletions
|
@ -408,7 +408,13 @@ class FactEditor(object):
|
|||
self.loadFields(check)
|
||||
self.parent.setUpdatesEnabled(True)
|
||||
self.fieldsScroll.setWidget(self.fieldsFrame)
|
||||
self.tagsLabel.setFixedWidth(max(*[l.width() for l in self.labels]) + 3)
|
||||
extra = 0
|
||||
if sys.platform.startswith("darwin"):
|
||||
extra = 5
|
||||
elif sys.platform.startswith("win32"):
|
||||
extra = 3
|
||||
self.tagsLabel.setFixedWidth(max(*[l.width() for l in self.labels])
|
||||
+ extra)
|
||||
self.parent.setTabOrder(last, self.tags)
|
||||
|
||||
def needToRedraw(self):
|
||||
|
|
Loading…
Reference in a new issue