Revision: 14057
http://sourceforge.net/p/skim-app/code/14057
Author: hofman
Date: 2024-02-18 22:25:51 +0000 (Sun, 18 Feb 2024)
Log Message:
-----------
connect top constraint for find bar in nib foruse without full size content view
Modified Paths:
--------------
trunk/MainWindow.xib
trunk/SKMainWindowController.h
trunk/SKMainWindowController.m
Modified: trunk/MainWindow.xib
===================================================================
--- trunk/MainWindow.xib 2024-02-18 18:50:46 UTC (rev 14056)
+++ trunk/MainWindow.xib 2024-02-18 22:25:51 UTC (rev 14057)
@@ -9,6 +9,7 @@
<customObject id="-2" userLabel="File's Owner"
customClass="SKMainWindowController">
<connections>
<outlet property="centerContentView" destination="1321"
id="1526"/>
+ <outlet property="findBarTopConstraint"
destination="Twe-rt-5Qm" id="9jp-xi-0gz"/>
<outlet property="leftSideContentView" destination="769"
id="774"/>
<outlet property="leftSideController" destination="1543"
id="1545"/>
<outlet property="mainWindow" destination="5" id="1554"/>
Modified: trunk/SKMainWindowController.h
===================================================================
--- trunk/SKMainWindowController.h 2024-02-18 18:50:46 UTC (rev 14056)
+++ trunk/SKMainWindowController.h 2024-02-18 22:25:51 UTC (rev 14057)
@@ -213,6 +213,7 @@
@property (nonatomic, nullable, strong) IBOutlet NSView *centerContentView;
@property (nonatomic, nullable, strong) IBOutlet SKSplitView *pdfSplitView;
@property (nonatomic, nullable, strong) IBOutlet NSView *pdfContentView;
+@property (nonatomic, nullable, strong) IBOutlet NSLayoutConstraint
*findBarTopConstraint;
@property (nonatomic, nullable, strong) IBOutlet SKStatusBar *statusBar;
Modified: trunk/SKMainWindowController.m
===================================================================
--- trunk/SKMainWindowController.m 2024-02-18 18:50:46 UTC (rev 14056)
+++ trunk/SKMainWindowController.m 2024-02-18 22:25:51 UTC (rev 14057)
@@ -215,7 +215,7 @@
@implementation SKMainWindowController
-@synthesize mainWindow, splitView, topConstraint, centerContentView,
pdfSplitView, pdfContentView, statusBar, pdfView, secondaryPdfView,
leftSideController, rightSideController, leftSideContentView,
rightSideContentView, presentationNotesDocument, presentationNotesOffset,
notes, thumbnails, snapshots, searchResults, groupedSearchResults, tags,
rating, pageLabel, interactionMode, placeholderPdfDocument;
+@synthesize mainWindow, splitView, topConstraint, centerContentView,
pdfSplitView, pdfContentView, findBarTopConstraint, statusBar, pdfView,
secondaryPdfView, leftSideController, rightSideController, leftSideContentView,
rightSideContentView, presentationNotesDocument, presentationNotesOffset,
notes, thumbnails, snapshots, searchResults, groupedSearchResults, tags,
rating, pageLabel, interactionMode, placeholderPdfDocument;
@dynamic pdfDocument, presentationOptions, presentationUndoManager,
selectedNotes, hasNotes, widgetProperties, autoScales, leftSidePaneState,
rightSidePaneState, findPaneState, leftSidePaneIsOpen, rightSidePaneIsOpen,
recentInfoNeedsUpdate, searchString, hasOverview, notesMenu;
+ (void)initialize {
@@ -1730,7 +1730,7 @@
CGFloat barHeight = NSHeight([findBar frame]);
if (mwcFlags.fullSizeContent == NO)
- newTopConstraint = [NSLayoutConstraint
constraintWithItem:mwcFlags.fullSizeContent ? pdfView : pdfSplitView
attribute:NSLayoutAttributeTop relatedBy:NSLayoutRelationEqual
toItem:contentView attribute:NSLayoutAttributeTop multiplier:1.0 constant:0.0];
+ newTopConstraint = [NSLayoutConstraint constraintWithItem:pdfSplitView
attribute:NSLayoutAttributeTop relatedBy:NSLayoutRelationEqual
toItem:contentView attribute:NSLayoutAttributeTop multiplier:1.0 constant:0.0];
if ([[mainWindow firstResponder] isDescendantOf:findBar])
[mainWindow makeFirstResponder:pdfView];
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