File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -745,14 +745,14 @@ def buttons(self):
745745 def adj_window (self ):
746746 return None
747747
748- if is_pyqt5 ( ):
749- # For some reason, self.setMinimumHeight doesn't seem to carry over to
750- # the actual sizeHint, so override it instead in order to make the
751- # aesthetic adjustments noted above.
752- def sizeHint ( self ):
753- size = super (). sizeHint ()
748+ def sizeHint ( self ):
749+ size = super (). sizeHint ()
750+ if is_pyqt5 () and self . canvas . _dpi_ratio > 1 :
751+ # For some reason, self.setMinimumHeight doesn't seem to carry over
752+ # to the actual sizeHint, so override it instead in order to make
753+ # the aesthetic adjustments noted above.
754754 size .setHeight (max (48 , size .height ()))
755- return size
755+ return size
756756
757757 def edit_parameters (self ):
758758 axes = self .canvas .figure .get_axes ()
You can’t perform that action at this time.
0 commit comments