Revision: 13701
          http://sourceforge.net/p/skim-app/code/13701
Author:   hofman
Date:     2023-10-27 14:01:14 +0000 (Fri, 27 Oct 2023)
Log Message:
-----------
use 24 for menuBarHeight when it returns 0, can happen when the menu bar is 
hidden on the desktop

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

Modified: trunk/SKMainWindowController_FullScreen.m
===================================================================
--- trunk/SKMainWindowController_FullScreen.m   2023-10-25 22:31:14 UTC (rev 
13700)
+++ trunk/SKMainWindowController_FullScreen.m   2023-10-27 14:01:14 UTC (rev 
13701)
@@ -647,7 +647,7 @@
         fullScreenToolbarOffset = toolbarViewOffset(mainWindow);
     NSRect frame = SKShrinkRect([[window screen] frame], 
-fullScreenOffset(window), NSMaxYEdge);
     if ([[NSUserDefaults standardUserDefaults] 
boolForKey:AppleMenuBarVisibleInFullscreenKey])
-        frame.size.height -= [[NSApp mainMenu] menuBarHeight];
+        frame.size.height -= [[NSApp mainMenu] menuBarHeight] ?: 24.0;
     if (animationWindow != nil) {
         [self showStaticContentForWindow:window];
         [(SKMainWindow *)window setDisableConstrainedFrame:YES];

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