Revision: 14482
          http://sourceforge.net/p/skim-app/code/14482
Author:   hofman
Date:     2024-09-25 14:21:39 +0000 (Wed, 25 Sep 2024)
Log Message:
-----------
Make sure content of preview window is aligned with top of panel content

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

Modified: trunk/SKPresentationOptionsSheetController.m
===================================================================
--- trunk/SKPresentationOptionsSheetController.m        2024-09-25 09:35:34 UTC 
(rev 14481)
+++ trunk/SKPresentationOptionsSheetController.m        2024-09-25 14:21:39 UTC 
(rev 14482)
@@ -312,7 +312,7 @@
         NSArray *constraints = @[
             [[bgView leadingAnchor] constraintEqualToAnchor:[contentView 
leadingAnchor] constant:6.0],
             [[contentView trailingAnchor] constraintEqualToAnchor:[bgView 
trailingAnchor] constant:6.0],
-            [[bgView topAnchor] constraintEqualToAnchor:[contentView 
topAnchor] constant:28.0],
+            [[bgView topAnchor] constraintEqualToAnchor:[[previewWindow 
contentLayoutGuide] topAnchor] constant:0.0],
             [[contentView bottomAnchor] constraintEqualToAnchor:[bgView 
bottomAnchor] constant:6.0]];
         [NSLayoutConstraint activateConstraints:constraints];
         
@@ -326,6 +326,7 @@
     [[previewView transitionController] setTransition:info];
     
     [previewWindow setTitle:[SKTransitionController 
localizedNameForStyle:[info transitionStyle]]];
+    rect.size.height += NSHeight([previewWindow frame]) - 
NSHeight([previewWindow contentLayoutRect]) - 28.0;
     [previewWindow setFrame:rect display:NO];
     [previewWindow center];
     [previewWindow makeKeyAndOrderFront:nil];

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