mirror of
https://github.com/ankitects/anki.git
synced 2025-12-11 13:56:55 -05: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)
|
QSizePolicy.Fixed)
|
||||||
FigureCanvas.updateGeometry(self)
|
FigureCanvas.updateGeometry(self)
|
||||||
|
|
||||||
|
def sizeHint(self):
|
||||||
|
w, h = self.get_width_height()
|
||||||
|
return QSize(w+30, h+30)
|
||||||
|
|
||||||
# bug in matplotlib
|
# bug in matplotlib
|
||||||
def keyReleaseEvent(self, evt):
|
def keyReleaseEvent(self, evt):
|
||||||
evt.ignore()
|
evt.ignore()
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue