File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -727,14 +727,14 @@ def buttons(self):
727727 def adj_window (self ):
728728 return None
729729
730- if is_pyqt5 ( ):
731- # For some reason, self.setMinimumHeight doesn't seem to carry over to
732- # the actual sizeHint, so override it instead in order to make the
733- # aesthetic adjustments noted above.
734- def sizeHint ( self ):
735- size = super (). sizeHint ()
730+ def sizeHint ( self ):
731+ size = super (). sizeHint ()
732+ if is_pyqt5 () and self . canvas . _dpi_ratio > 1 :
733+ # For some reason, self.setMinimumHeight doesn't seem to carry over
734+ # to the actual sizeHint, so override it instead in order to make
735+ # the aesthetic adjustments noted above.
736736 size .setHeight (max (48 , size .height ()))
737- return size
737+ return size
738738
739739 def edit_parameters (self ):
740740 axes = self .canvas .figure .get_axes ()
You can’t perform that action at this time.
0 commit comments