File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -727,14 +727,14 @@ def buttons(self):
727
727
def adj_window (self ):
728
728
return None
729
729
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.
736
736
size .setHeight (max (48 , size .height ()))
737
- return size
737
+ return size
738
738
739
739
def edit_parameters (self ):
740
740
axes = self .canvas .figure .get_axes ()
You can’t perform that action at this time.
0 commit comments