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 @@ -745,14 +745,14 @@ def buttons(self):
745
745
def adj_window (self ):
746
746
return None
747
747
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.
754
754
size .setHeight (max (48 , size .height ()))
755
- return size
755
+ return size
756
756
757
757
def edit_parameters (self ):
758
758
axes = self .canvas .figure .get_axes ()
You can’t perform that action at this time.
0 commit comments