Revision: 29856
          http://sourceforge.net/p/bibdesk/svn/29856
Author:   hofman
Date:     2025-11-20 09:42:41 +0000 (Thu, 20 Nov 2025)
Log Message:
-----------
revert previous commit, forgot about rioch text option view

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

Modified: trunk/bibdesk/BDSKTemplateDocument.m
===================================================================
--- trunk/bibdesk/BDSKTemplateDocument.m        2025-11-19 23:19:13 UTC (rev 
29855)
+++ trunk/bibdesk/BDSKTemplateDocument.m        2025-11-20 09:42:41 UTC (rev 
29856)
@@ -213,16 +213,10 @@
         for (NSView *view in views)
             [[[view widthAnchor] constraintEqualToConstant:width] 
setActive:YES];
     }
-    NSSize size = [fieldOptionsView fittingSize];
+    CGFloat width = [fieldOptionsView fittingSize].width;
     for (NSView *view in @[appendingOptionsView, textOptionsView, 
fontOptionsView])
-        [[[view widthAnchor] constraintEqualToConstant:size.width] 
setActive:YES];
-    [[[optionsView widthAnchor] 
constraintGreaterThanOrEqualToConstant:size.width] setActive:YES];
-    for (NSLayoutConstraint *constraint in [optionsView constraints]) {
-        if ([constraint firstAttribute] == NSLayoutAttributeHeight) {
-            [constraint setConstant:3.0 * size.height];
-            break;
-        }
-    }
+        [[[view widthAnchor] constraintEqualToConstant:width] setActive:YES];
+    [[[optionsView widthAnchor] constraintGreaterThanOrEqualToConstant:width] 
setActive:YES];
     
     if (@available(macOS 10.14, *)) {
         [prefixTemplateTextView setDrawsBackground:NO];
@@ -241,7 +235,7 @@
         [tableView setStyle:NSTableViewStylePlain];
     
     NSTableColumn *tableColumn = [tableView 
tableColumnWithIdentifier:@"pubType"];
-    CGFloat width = NSWidth([[[tableView enclosingScrollView] contentView] 
visibleRect]) - 2.0 * [tableView intercellSpacing].width - [[tableView 
tableColumnWithIdentifier:@"included"] width];
+    width = NSWidth([[[tableView enclosingScrollView] contentView] 
visibleRect]) - 2.0 * [tableView intercellSpacing].width - [[tableView 
tableColumnWithIdentifier:@"included"] width];
     [tableColumn setWidth:fmax(width, [tableColumn minWidth])];
     
     [(NSNumberFormatter *)[sizeComboBox formatter] 
setZeroSymbol:NSLocalizedString(@"Inherit", @"Inherit font size placeholder")];

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