Revision: 13564
          http://sourceforge.net/p/skim-app/code/13564
Author:   hofman
Date:     2023-08-06 14:38:24 +0000 (Sun, 06 Aug 2023)
Log Message:
-----------
fix frame calculation

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

Modified: trunk/SKNavigationWindow.m
===================================================================
--- trunk/SKNavigationWindow.m  2023-08-06 14:31:42 UTC (rev 13563)
+++ trunk/SKNavigationWindow.m  2023-08-06 14:38:24 UTC (rev 13564)
@@ -306,7 +306,11 @@
         [[self contentView] addSubview:closeButton];
         
         NSScreen *screen = [[pdfView window] screen] ?: [NSScreen mainScreen];
-        NSRect frame = NSMakeRect(NSMidX([screen frame]) - 0.5 * 
NSWidth(frame), NSMinY([screen frame]) + WINDOW_OFFSET, NSWidth([styleButton 
frame]) + NSWidth([removeShadowButton frame]) + NSHeight(rect) + 2.0 * 
BUTTON_MARGIN + 2.0 * SEP_WIDTH, NSHeight(rect) + 2.0 * BUTTON_MARGIN);
+        NSRect frame;
+        frame.size.width = NSWidth([styleButton frame]) + 
NSWidth([removeShadowButton frame]) + NSHeight(rect) + 2.0 * BUTTON_MARGIN + 
2.0 * SEP_WIDTH;
+        frame.size.height = NSHeight(rect) + 2.0 * BUTTON_MARGIN;
+        frame.origin.x = NSMidX([screen frame]) - 0.5 * NSWidth(frame);
+        frame.origin.y = NSMinY([screen frame]) + WINDOW_OFFSET;
         [self setFrame:frame display:NO];
         [(NSVisualEffectView *)[self contentView] setMaskImage:[NSImage 
maskImageWithSize:frame.size cornerRadius:CORNER_RADIUS]];
     }

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