mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
add size hint back for osx
This commit is contained in:
parent
912e3103e6
commit
7c4a1f1784
1 changed files with 4 additions and 0 deletions
|
@ -28,6 +28,10 @@ class AnkiFigureCanvas (FigureCanvas):
|
|||
QSizePolicy.Fixed)
|
||||
FigureCanvas.updateGeometry(self)
|
||||
|
||||
def sizeHint(self):
|
||||
w, h = self.get_width_height()
|
||||
return QSize(w+30, h+30)
|
||||
|
||||
# bug in matplotlib
|
||||
def keyReleaseEvent(self, evt):
|
||||
evt.ignore()
|
||||
|
|
Loading…
Reference in a new issue