Revision: 16160
          http://sourceforge.net/p/skim-app/code/16160
Author:   hofman
Date:     2026-04-04 14:39:14 +0000 (Sat, 04 Apr 2026)
Log Message:
-----------
don't add extra constraints

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

Modified: trunk/SKMainWindowController.m
===================================================================
--- trunk/SKMainWindowController.m      2026-04-04 14:24:56 UTC (rev 16159)
+++ trunk/SKMainWindowController.m      2026-04-04 14:39:14 UTC (rev 16160)
@@ -1735,13 +1735,6 @@
     BOOL isPresentation = 0 == ([[overviewContentView window] styleMask] & 
NSWindowStyleMaskTitled);
     NSView *newView = isPresentation ? presentationView : [splitViewController 
view];
     NSView *contentView = [overviewContentView superview];
-    BOOL useContentTop = mwcFlags.fullSizeContent || isPresentation;
-    BOOL hasStatus = isPresentation == NO && [statusBar isVisible];
-    NSArray *constraints = @[
-        [[newView leadingAnchor] constraintEqualToAnchor:[contentView 
leadingAnchor]],
-        [[contentView trailingAnchor] constraintEqualToAnchor:[newView 
trailingAnchor]],
-        [[newView topAnchor] constraintEqualToAnchor:[(useContentTop ? 
contentView : [[self window] contentLayoutGuide]) topAnchor]],
-        [(hasStatus ? [statusBar topAnchor] : [contentView bottomAnchor]) 
constraintEqualToAnchor:[newView bottomAnchor]]];
     
     if (animate) {
         if (handler) {
@@ -1756,7 +1749,6 @@
     
     [overviewContentView removeFromSuperview];
     [newView setHidden:NO];
-    [NSLayoutConstraint activateConstraints:constraints];
     [[contentView window] makeFirstResponder:isPresentation ? presentationView 
: pdfView];
     [[contentView window] recalculateKeyViewLoop];
     

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