Revision: 28621
          http://sourceforge.net/p/bibdesk/svn/28621
Author:   hofman
Date:     2024-01-16 17:47:31 +0000 (Tue, 16 Jan 2024)
Log Message:
-----------
else for wrong condition

Modified Paths:
--------------
    trunk/bibdesk/BDSKPreferenceController.m

Modified: trunk/bibdesk/BDSKPreferenceController.m
===================================================================
--- trunk/bibdesk/BDSKPreferenceController.m    2024-01-16 17:21:26 UTC (rev 
28620)
+++ trunk/bibdesk/BDSKPreferenceController.m    2024-01-16 17:47:31 UTC (rev 
28621)
@@ -409,12 +409,12 @@
                 if (@available(macOS 11.0, *)) {
                     [searchField 
setTranslatesAutoresizingMaskIntoConstraints:NO];
                     [searchField addConstraints:@[[NSLayoutConstraint 
constraintWithItem:searchField attribute:NSLayoutAttributeWidth 
relatedBy:NSLayoutRelationGreaterThanOrEqual toItem:nil 
attribute:NSLayoutAttributeNotAnAttribute multiplier:1.0 
constant:NSWidth([searchField frame])], [NSLayoutConstraint 
constraintWithItem:searchField attribute:NSLayoutAttributeWidth 
relatedBy:NSLayoutRelationLessThanOrEqual toItem:nil 
attribute:NSLayoutAttributeNotAnAttribute multiplier:1.0 constant:200.0]]];
+                } else {
+                    [item setMinSize:[searchField frame].size];
+                    [item setMaxSize:NSMakeSize(200.0, NSHeight([searchField 
frame]))];
                 }
                 [item setView:searchField];
                 //[item setLabel:NSLocalizedString(@"Search", @"Toolbar item 
label")];
-            } else {
-                [item setMinSize:[searchField frame].size];
-                [item setMaxSize:NSMakeSize(200.0, NSHeight([searchField 
frame]))];
             }
         } else if ([itemIdentifier 
isEqualToString:BDSKPreferencesToolbarTitleItemIdentifier]) {
             if ((item = [[NSToolbarItem alloc] 
initWithItemIdentifier:itemIdentifier])) {

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.



_______________________________________________
Bibdesk-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit

Reply via email to