Revision: 13594
          http://sourceforge.net/p/skim-app/code/13594
Author:   hofman
Date:     2023-08-20 08:49:53 +0000 (Sun, 20 Aug 2023)
Log Message:
-----------
only set frame size when height is different from 24

Modified Paths:
--------------
    trunk/SKNavigationWindow.m

Modified: trunk/SKNavigationWindow.m
===================================================================
--- trunk/SKNavigationWindow.m  2023-08-18 20:59:29 UTC (rev 13593)
+++ trunk/SKNavigationWindow.m  2023-08-20 08:49:53 UTC (rev 13594)
@@ -717,8 +717,13 @@
 
 - (void)sizeToFit {
     [super sizeToFit];
-    [self setFrameSize:NSMakeSize(NSWidth([self frame]), 24.0)];
+    NSSize size = [self frame].size;
+    if (fabs(size.height - 24.0) > 0.0) {
+        size.height = 24.0;
+        [self setFrameSize:size];
+    }
 }
+
 @end
 
 #pragma mark -

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.



_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to